5aea78950f
Motivation: If a request to open a new h2 stream was made from outside of the EventLoop it will be scheduled for future execution on the EventLoop. However, during the time before the `open0` task will be executed the parent channel may already be closed. As the result, `Http2MultiplexHandler#newOutboundStream()` will throw an `IllegalStateException` with the message that is hard to interpret correctly for this use-case: "Http2FrameCodec not found. Has the handler been added to a pipeline?". Modifications: - Check that the parent h2 `Channel` is still active before creating a new stream when `open0` task is picked up by EventLoop; Result: Users see a correct `ClosedChannelException` in case the parent h2 `Channel` was closed concurrently with a request for a new stream. |
||
---|---|---|
.. | ||
src | ||
pom.xml |