forked from netty/netty
-
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.
Fix a bug where SpdySession.getActiveStreams() returns incorrect set
Related issue: netty#2743 Motivation: When there are more than one stream with the same priority, the set returned by SpdySession.getActiveStream() will not include all of them, because it uses TreeSet and only compares the priority of streams. If two different streams have the same priority, one of them will be discarded by TreeSet. Modification: - Rename getActiveStreams() to activeStreams() - Replace PriorityComparator with StreamComparator Result: Two different streams with the same priority are compared correctly.
- Loading branch information
Showing
2 changed files
with
20 additions
and
13 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