-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move END_STREAM check earlier. (#237)
Motivation: In an earlier patch (1e68e51) we attempted to avoid emitting WINDOW_UPDATE frames on streams that were already closed on their inbound side. This was largely a reasonable fix, but we missed an important area: END_STREAM in a sequence of frames. This would be triggered if we received multiple DATA frames in a row, where the last one contained END_STREAM but an earlier one triggered a WINDOW_UPDATE. The stream state machine would have seen the END_STREAM already and will forbid the WINDOW_UPDATE, but the stream channel won't yet have seen it and will try to send it. The fix is easy enough: look for END_STREAM earlier. Modifications: - Check for END_STREAM when the stream channel receives the frame, not when it passes it into the pipeline. Result: Fewer spurious connection errors.
- Loading branch information
Showing
3 changed files
with
59 additions
and
11 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
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