-
Notifications
You must be signed in to change notification settings - Fork 77
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
HTTP2 spec section 3.5 error #112
Comments
Sorry for the delayed response. h2spec expects a GOAWAY frame OR connection to be disconnected in 3.5. It does not necessarily require a GOAWAY frame. Looking at the output of the original Issue, it looks like the server is forcing the connection to be terminated without proper disconnection from the server. Is your server side properly terminating the connection?
|
Also at Jetty we are having problems with the too strict interpretation of this section. Sending an invalid preface may first trigger a HTTP/1.1 parser (in case a HTTP/1.1 to HTTP/2 upgrade is necessary). The HTTP/1.1 parser will not recognize the preface and generate a HTTP/1.1 400 with a small body, and then close the connection. Apparently, Attached a network capture that shows the issue. Thanks! |
This issue could most probably be solved by #119 |
A workaround (kludge) is
#119 addresses the issue more cleanly. |
Hi from Payara, both master and #119 still fail on Ubuntu the same way ...
The trick from @gstrauss works, but looks very nasty :-) |
it looks like the good folks over at actix-web found an error in h2spec section 3.5
actix/actix-web#1453
"Clients and servers MUST treat an invalid connection preface as a connection error (Section 5.4.1) of type PROTOCOL_ERROR. A GOAWAY frame (Section 6.8) MAY be omitted in this case, since an invalid preface indicates that the peer is not using HTTP/2." per http2 sec https://http2.github.io/http2-spec/#ConnectionHeader
but it looks like h2spec requires a GOAWAY frame--please see the linked issue
The text was updated successfully, but these errors were encountered: