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

h2spec 2.6.0 tests are failling against h2 #701

Closed
DDtKey opened this issue Jul 20, 2023 · 3 comments
Closed

h2spec 2.6.0 tests are failling against h2 #701

DDtKey opened this issue Jul 20, 2023 · 3 comments

Comments

@DDtKey
Copy link
Contributor

DDtKey commented Jul 20, 2023

I tried to run the latest version of h2spec against master branch in h2 and it's failing with the following error:

Hypertext Transfer Protocol Version 2 (HTTP/2)
  3. Starting HTTP/2
    3.5. HTTP/2 Connection Preface
      using source address 127.0.0.1:62276
      × 2: Sends invalid connection preface
        -> The endpoint MUST terminate the TCP connection.
           Expected: GOAWAY Frame (Error Code: PROTOCOL_ERROR)
                     Connection closed
             Actual: Error: read tcp 127.0.0.1:62276->127.0.0.1:5928: read: connection reset by peer

See #702

@hawkw
Copy link
Collaborator

hawkw commented Jul 20, 2023

Huh, looks like we're not properly GOAWAYing the conn in this case and just immediately closing it?

@DDtKey
Copy link
Contributor Author

DDtKey commented Jul 21, 2023

@hawkw
Well, now I don't think so, it seems related to summerwind/h2spec#81

And the fix of h2spec was here: summerwind/h2spec#119 (see the last comment)

So I guess it's allowed behavior. But there is no newer release of h2spec, only build from main branch probably.

Let me know WDYT, I can close the issue I guess.

@hawkw
Copy link
Collaborator

hawkw commented Jul 21, 2023

Ah, yup, it looks like our current behavior is permitted but h2spec incorrectly requires us to send a GOAWAY, based on the issue you linked.

For now, I think the best thing to do is to close this issue and wait for a new version to be released before updating h2spec.

@DDtKey DDtKey closed this as completed Jul 21, 2023
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

2 participants