Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow payload-based stream channels to be created.
Motivation: To lift the requirement that stream creation order must match the order of the first write on those channels we added a payload-based stream channel. We need a way for users to create these channels and initialze these channels when they are inbound. Modifications: - Adds a `createStreamChannel` using a stream initialzer without a stream ID - Adds a new multiplexer `init` where the inbound stream initialzer does not use stream IDs - Adds an additional 'configure' to MultiplexerAbstractChannel - Replaces the `init` in `MultiplexerAbstractChannel` with two `static func`s: we can't switch on an optional stream ID since inbound streams always have a stream ID; we need to be be able to explicitly support choosing the type of channel we want. - Minor refactoring in `HTTP2StreamChannel` to avoid duplication between the `configure` functions Result: - The multiplexer can create payload based streams manually and when a new stream is inbound.
- Loading branch information
Showing
3 changed files
with
219 additions
and
44 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
Oops, something went wrong.