I have a SimpleChannelInboundHandler which handles a few http requests:
CacheServerHandler extends SimpleChannelInboundHandler<FullHttpRequest>
When i do not explicitly close the channel/connection and keepalive is true, will channelInactive be called every time after channelRead0 is done?
Or will channelInactive only be called once when the channel/connection is closed?
I ask this because when keepalive is true on a http connection the connection isn't closed by client and client can send multiple requests without opening/closing the connection.
ChannelInactive() will only be called when the channel is closed. This is the contract.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With