hyperium / h2

HTTP 2.0 client & server implementation for Rust.
MIT License
1.34k stars 266 forks source link

Fix Counts::dec_num_remote_reset_streams assertion failure #682

Closed nox closed 1 year ago

nox commented 1 year ago

Cc @Noah-Kennedy

nox commented 1 year ago

I can't manage to write a test that fails without the fix though :(

nox commented 1 year ago

Added a test, the key to it was to keep around an ongoing request so h2.poll_closed() doesn't actually close the connection.