-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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_easy_perform returns CURLE_OK when HTTP/1.1 connection reuse fails #2801
Comments
Can you please help us understand how to reproduce this? I've read the code a few times now and I can't see how it can log that message and not return an error... can you? |
This is a tricky one to reproduce in lab, but happens regularly in practice; the other end needs to close the connection after the initial check for dead connection but before the upload completes. Line 1944 in acefdd0
with done=true and result=CURLE_OK. I'll verify this on Monday. |
Gist of code used to reproduce:
With read callback:
|
Also my comment above was apparently right; the following patch gives me CURLE_SEND_FAIL_REWIND: I don't understand the code enough to know if this is the right place for this fix or not; let me know if I should file a pull request. |
Thanks! I think it looks like a good fix. Please submit a PR for it! |
I did this
I'm uploading files to HTTP/1.1 endpoint over SSL using lubcurl. I'm reusing the same easy handle to allow for connection reuse. Every now and then I'm getting CURLE_OK without accompanying HTTP response. Debug logs show the following:
I expected the following
curl_easy_perform should return CURLE_SEND_FAIL_REWIND
curl/libcurl version
[curl -V output]
curl 7.60.0 (i386-pc-win32) libcurl/7.60.0 OpenSSL/1.1.0h (WinSSL) zlib/1.2.11 brotli/1.0.4 WinIDN libssh2/1.8.0 nghttp2/1.32.0
Release-Date: 2018-05-16
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz brotli TLS-SRP HTTP2 HTTPS-proxy MultiSSL
operating system
Windows 2008R2
The text was updated successfully, but these errors were encountered: