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

Closed connection not reported as error in cleartext HTTP2 upgrade #166

Closed
bdarnell opened this Issue Mar 14, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@bdarnell

bdarnell commented Mar 14, 2015

I'm using the multi interface to fetch an HTTP url with CURLOPT_HTTP_VERSION set to CURL_HTTP_VERSION_2 (so HTTP2 is not actually in use; it's an HTTP1 request with an upgrade header). If the server closes the socket without sending a response, this is not reported as an error (curl_multi_info_read returns a result of CURLE_OK). Without setting CURLOPT_HTTP_VERSION it correctly reports CURLE_PARTIAL_FILE.

Versions: libcurl 7.41.0 and nghttp2 0.7.5 on OSX

@bagder bagder self-assigned this Mar 14, 2015

@bagder bagder added the HTTP label Mar 14, 2015

@bagder

This comment has been minimized.

Member

bagder commented Mar 14, 2015

Thanks, I can repeat it too...

bagder added a commit that referenced this issue Mar 14, 2015

http2: detect prematures close without data transfered
... by using the regular Curl_http_done() method which checks for
that. This makes test 1801 fail consistently with error 56 (which seems
fine) to that test is also updated here.

Reported-by: Ben Darnell
Bug: #166
@bagder

This comment has been minimized.

Member

bagder commented Mar 14, 2015

Fixed now in commit 0cf649d. Thanks a lot, case closed!

@bagder bagder closed this Mar 14, 2015

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.