Motivation:
Child channels should not activate before their parents.
Modifications:
Delay activation if the parent channel is not currently active.
Activate during channelActive, if needed.
Result:
Easier to start HTTP/2 requests
Motivation:
The example server had slowly bitrotted over time: some minor fixes were
needed.
Modifications:
I fixed it!
Result:
The example server works against a basic curl command.
Motivation:
While the HTTP2StreamMultiplexer could create channels in response to
inbound request streams on the server side, there was no interface for
creating channels locally.
That would make having a HTTP/2 client kinda tricky!
Modifications:
Added HTTP2StreamMultiplexer.createStreamChannel.
Result:
Possible to write HTTP/2 clients.
Motivation:
When closing a stream channel, it must remove its channel handlers.
Modifications:
Call ChannelCore.removeHandlers on shutdown.
Result:
Handlers are removed on channel shutdown.
Motivation:
The HTTP2StreamChannel needs to be aware of the HTTP/2 state machine,
at least at some level. This is to ensure it can map that state
machine onto the (unfortunately implicit) NIO stream state machine
and appropriately clean up resources like stream promises.
Modifications:
Lots. Added stream state tracking, refactored the frame structure,
stopped creating stream 0 as a sub-stream, and more.
Result:
We no longer crash when the curl TCP connection goes away.