-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl --upload-file . hang if delay in STDIN #2051
Comments
Same bug as #932 (I think that issue should not have been closed without a solution) |
@mkauf open bugs with no action makes no sense to keep open, that only clutters our tracker. Clearly nobody cared about the bug enough to take it anywhere. It should probably have been added to the |
jpschroeder
added a commit
to jpschroeder/curl
that referenced
this issue
Nov 22, 2019
Attempt to unpause a busy read in the CURLOPT_XFERINFOFUNCTION. When uploading from stdin in non-blocking mode, a delay in reading the stream (EAGAIN) causes curl to pause sending data (CURL_READFUNC_PAUSE). Prior to this change, a busy read was detected and unpaused only in the CURLOPT_WRITEFUNCTION handler. This change performs the same busy read handling in a CURLOPT_XFERINFOFUNCTION handler. Fixes: curl#2051 Reported-by: @bdry
bagder
pushed a commit
that referenced
this issue
Nov 26, 2019
Attempt to unpause a busy read in the CURLOPT_XFERINFOFUNCTION. When uploading from stdin in non-blocking mode, a delay in reading the stream (EAGAIN) causes curl to pause sending data (CURL_READFUNC_PAUSE). Prior to this change, a busy read was detected and unpaused only in the CURLOPT_WRITEFUNCTION handler. This change performs the same busy read handling in a CURLOPT_XFERINFOFUNCTION handler. Fixes #2051 Closes #4599 Reported-by: bdry on github
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I did this
(echo start; sleep 1; echo end) | curl --upload-file . http://mywebsite -vv
Curl hang
I expected the following
Working upload of stdin
curl/libcurl version
operating system
Debian GNU/Linux buster/sid
The text was updated successfully, but these errors were encountered: