-
Notifications
You must be signed in to change notification settings - Fork 63
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
Do not remove closed streams immediately #120
Conversation
Closed streams need to remain in the Connection @streams list so that frames received for closed streams do not cause a protocol error. They are cleaned up if closed for 15 seconds when another stream is closed.
Makes sense.
We do want to remove it from the We already handle a similar case for push_promises: http-2/lib/http/2/connection.rb Lines 273 to 290 in 0aeaac2
To cover the case that you're after, we probably need to look at.. http-2/lib/http/2/connection.rb Lines 331 to 333 in 0aeaac2
|
I believe stream accounting is handled by:
Which i kept in with this patch. Does that handle it? My original patch actually added an if statement around that Let me know if you think it's still best to do the |
Rubocop is directional advice, we can tell it to shush.. :)
Ah, good point. Yes that makes sense. On second pass, I think this looks reasonable 👍 |
Thanks! |
Closed streams need to remain in the Connection
@streams
list so thatframes received for closed streams do not cause a protocol error.
They are cleaned up if closed for 15 seconds when another stream is
closed.
Fixes #119