forked from apple/swift-nio-http2
-
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.
Update HTTP2StreamChannel to tolerate nil stream ID. (apple#217)
Motivation: As part of the work in apple#214, HTTP2StreamID will need to be able to tolerate not knowing its stream ID. For now this is not a problem, but we should think about everywhere we use the stream ID and make sure we have a solid principle in mind. This lays the groundwork for future enhancements. Modifications: - Update HTTP2StreamChannel to hold an optional stream ID. - Update interface to HTTP2StreamMultiplexer to tolerate closing channels without stream IDs (we'll need it later). - Move the "get a new stream ID" functionality to a method on HTTP2StreamMultiplexer. - Validate we behave correctly with optional stream IDs in the channel. Result: We can tolerate stream IDs being not present.
- Loading branch information
Showing
4 changed files
with
60 additions
and
19 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
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