Skip to content
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

3.5 & 5.4.1 should allow GOAWAY #81

Open
apapirovski opened this issue Aug 31, 2017 · 2 comments
Open

3.5 & 5.4.1 should allow GOAWAY #81

apapirovski opened this issue Aug 31, 2017 · 2 comments

Comments

@apapirovski
Copy link

It's possible I'm missing something here but it seems like GOAWAY should be allowed in these two tests. The only other tests where VerifyConnectionClose seems to be used are ones where GOAWAY is first sent by h2spec.

3.5:

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.

and

5.4.1:

An endpoint that encounters a connection error SHOULD first send a GOAWAY frame (Section 6.8) with the stream identifier of the last stream that it successfully received from its peer. The GOAWAY frame includes an error code that indicates why the connection is terminating. After sending the GOAWAY frame for an error condition, the endpoint MUST close the TCP connection.

@summerwind
Copy link
Owner

Thank you for the comment!
I agree with 3.5. I fixed it to handle GOAWAY in 672e145. As for 5.4.1, I think there is no problem with the current test case. Can you explain more detail please?

@seanmonstar
Copy link

The change in 672e145 requires a GOAWAY frame, where as the spec mentions:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants