Closed gjcairo closed 6 months ago
What would we do with them?
I think we looked at our problem the wrong way. The problem being how to close only the inbound stream when using NIOAsyncChannel
. At the moment it closes it on channelInactive
, channelError
and on the ChannelEvent.inputClosed
user inbound event.
The first two aren't appropriate so and we made the mistake of thinking "we need ChannelEvent.inputClosed
so we need close0
to support close modes". I think we can just fire the user inbound event when we receive a frame with the end stream flag set, which I think makes sense in this situation.
Right now, the
close0
implementation ofHTTP2StreamChannel
doesn't do anything with the close mode: link. We should add support for the different close modes.