cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2844110 ] 7.19.6: Uploads from stdin stall

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 25 Aug 2009 09:13:25 +0000

Bugs item #2844110, was opened at 2009-08-25 10:47
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2844110&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Christian Ullrich (chrullrich)
Assigned to: Daniel Stenberg (bagder)
Summary: 7.19.6: Uploads from stdin stall

Initial Comment:
On FreeBSD 7.1 and 7.2, since cURL 7.19.6, FTP uploads from stdin ("--upload-file -") stall. The specific circumstances are:

- cURL is reading from stdin, which is a pipe
- cURL reads data from the pipe faster than the pipe writer can provide it

The transfer will stall as soon as cURL exhausts the pipe for the first time (read() will return -1, errno will be EAGAIN). From this point forward, cURL will attempt no further reads. The amount of data transferred varies widely, from zero up to many MB.

This does not happen if stdin is an input redirection from an existing file.

Artificially slowing down cURL, for example by attaching a process trace, will in some cases allow the transfer to complete. "nice -n 19", on an otherwise unloaded system, will not help.

This behavior started with the upgrade from cURL 7.19.5 to 7.19.6 on the affected system. Reverting to version 7.19.5 solved the problem.

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2009-08-25 11:13

Message:
Yes, thanks. This is indeed a regression present in 7,19.6 but we have
already fixed it in CVS and it will thus work fine again in 7.19.7. Sorry
for the inconvenience! :-(

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2844110&group_id=976
Received on 2009-08-27

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET