-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not remove idle streams immediatly.
According to RFC 9113 section 5.1.1: The first use of a new stream identifier implicitly closes all streams in the "idle" state that might have been initiated by that peer with a lower-valued stream identifier. But Firefox creates idle streams and uses them as a nodes in priority tree and such streams should not be deleted. So we don't remove and delete idle streams if there count is less then TFW_MAX_IDLE_STREAMS (6). Also make two fixes: - add/remove idle streams under ctx lock. - add streams to idle queue in reverse order to avoid going through all list (new stream has usually greater stream id).
- Loading branch information
1 parent
910f3a1
commit b20528d
Showing
3 changed files
with
52 additions
and
40 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