curl-users
RE: HTTPS Upload, is this fixed ?
Date: Tue, 26 Nov 2002 18:08:18 +0100 (MET)
On Tue, 26 Nov 2002, Bruce Miranda wrote:
> Sorry if I didn't give any details. The problem is that the file transfer
> progress meter just hangs after the first line of 0%. This happens only
> with file larger than 18K. Smaller files with transfer successfully using
> the same options. On adding debug statements to the sendf.c file I see that
> the SSL_Write will return a -1 for larger files and that's when it hangs.
> But for smaller files it will return the total number of bytes written.
I can't see this as a curl problem. curl works eactly the same, whatever the
file size is. And when it is less than 20K, it is usually read into memory in
one large read and then sent off.
If SSL_write() has a problem with a large buffer, I'd guess that in this
case, you're communicating with a faulty server that for some reason don't
like how OpenSSL sends its data to it. Of course, there could also be an
OpenSSL bug.
The -1 it returns is perfectly natural and expected. It is the OpenSSL
equivalent of EWOULDBLOCK and is not surprising at all. The bad part is that
the file descriptor doesn't get noticed as 'writable' again to send off the
rest of the buffer.
You could try editing CURL_MAX_WRITE_SIZE in curl.h to something less than
18K, rebuild and try again and see if that runs better.
Please prove me wrong if you think I am.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002enReceived on 2002-11-26