-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http2: discard more frames after GOAWAY
After sending a GOAWAY with NO_ERROR, we should discard all frames for streams with larger identifiers than the last stream identifier in the GOAWAY frame. We weren't discarding RST_STREAM frames, which could cause us to incorrectly detect a protocol error when handling a RST_STREAM for a discarded stream. Hoist post-GOAWAY frame discarding higher in the loop rather than handling it on a per-frame-type basis. We are also supposed to count discarded DATA frames against connection-level flow control, possibly sending WINDOW_UPDATE messages to return the flow control. We weren't doing this; this is now fixed. Fixes golang/go#55846 Change-Id: I7603a529c00b8637e648eee9cc4608fb5fa5199b Reviewed-on: https://go-review.googlesource.com/c/net/+/434909 Reviewed-by: Heschi Kreinick <[email protected]> Run-TryBot: Damien Neil <[email protected]> Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: LI ZHEN <[email protected]> Reviewed-by: Antonio Ojea <[email protected]>
- Loading branch information
1 parent
d9416fc
commit 05c9dea
Showing
2 changed files
with
52 additions
and
22 deletions.
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