-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix last peer initiated stream ID when quiescing (#1700)
Motivation: The idle handler records the ID of the last stream created by the remote peer and uses it when sending GOAWAY frames. In most paths this was correctly updated according to the role the handler played in the connection and the stream ID. However, in the quiescing state it was unconditionally updated. This can lead to cases where the client attempts to send a GOAWAY with a client initiated stream ID: this is invalid and NIO HTTP/2 treats it as a connection level error, closing all open streams. Modification: - Conditionally update the last peer initiated stream ID when quiescing Result: Fewer connection errors
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters