-
-
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
HTTP/2 connection reuse is broken in 7.49.1 #855
Comments
Ouch. And no test caught it... =( I guess it also tells us we should add a test for this together with the fix. |
(found by adu on irc, by the way, not by me) |
I (I'm adu on irc) have a fix for this, but I'm still running the tests to see if there are any regressions. |
We fixed this in 1aa899f, thanks. |
This also caused the |
I don't see how this should cause the 7.50.0 is due to be released on July 21 so there will be no 7.49.X patch release before that. |
@bagder It looks as though that was a symptom of the parsing bug. When http2 status parsing failed the code defaulted to 200 (ouch indeed). |
curl --http1.1 -v https://http2bin.org/get https://http2bin.org/get
curl --http2 -v https://http2bin.org/get https://http2bin.org/get
The problem is that the version detection in lib/http.c around line 3310 assumes HTTP/major.minor, and 8243a95 changes that, so HTTP/2 gets detected as 10, which then makes a lot of code fall back to HTTP/1.0 behaviour such as connection closing.
Note that 8243a95 was committed between 7.49 and 7.49.1, so the current released version (7.49.1) is affected.
The text was updated successfully, but these errors were encountered: