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

h2 tests for RST_STREAM and GOAWAY frames #404

Merged
merged 6 commits into from
Feb 16, 2023

Conversation

RomanBelozerov
Copy link
Contributor

#88

Verification of correct handling for connection and stream error cases: a) get valid GOAWAY frame in response on connection error case; b) get valid RST_STREAM frame in response on stream error situation (the whole connection must remain alive).

I also added some tests for header table size update bytes in headers frame.

- handling WindowUpdate frame;
- waiting for close connection (for RST_STREAM and GOAWAY);
- added last_stream_id from GOAWAY frame.
client.h2_connection.reset_stream(stream_id=1, error_code=0)
client.send_bytes(client.h2_connection.data_to_send())
client.h2_connection.clear_outbound_data_buffer()
self.assertTrue(client.wait_for_ack_settings())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For which settings we are waiting for an ACK here?

@RomanBelozerov RomanBelozerov merged commit 3ca3403 into master Feb 16, 2023
@RomanBelozerov RomanBelozerov deleted the rb-88-rst-and-goaway branch February 16, 2023 08:31
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

Successfully merging this pull request may close these issues.

2 participants