Multiple IdleStateHandlers #13327
isaacrivriv
started this conversation in
General
Replies: 1 comment
-
Anyone have any ideas that could help with this? Anything helps. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone!
I'm a bit new to Netty. I'm trying to build a small API specifically returning a Netty bootstrap with multiple general handlers for things like logging, timeouts, etc so that more specific handlers can be added on top. I'm trying to add an additional IdleStateHandler to the bootstrap for a more specific read timeout functionality with the additional generic IdleStateHandler for general all idle timeout. I'm seeing some issues where with both handlers, timeouts are being hit even if there are reads and writes happening. With either of the handlers in the pipeline, the timeouts aren't hit, this only occurs with both. I switched up the order out of curiosity adding the specific IdleStateHandler just before the general IdleStateHandler and the timeouts stopped happening. Is there a specific way I need to add handlers like this or am I just doing something wrong?
More info...
Generic IdleStateHandler
Specific IdleStateHandler
Channel Handlers List
Timeout triggered case tcpLoggingHandler, genericTimeoutHandler, specificTimeoutHandler,... , decoder, encoder, serverConnectionHandler, DefaultChannelPipeline$TailContext#0
Timeout not-triggered case tcpLoggingHandler, specificTimeoutHandler, genericTimeoutHandler,... , decoder, encoder, serverConnectionHandler, DefaultChannelPipeline$TailContext#0
Beta Was this translation helpful? Give feedback.
All reactions