I have a server and a client that have their own bootstrap. My issue is that different connections are used for different purposes. One is used for control channel(communicating to server and back) and then other connections are established to do data transfers. I programmatically add the idlestate handler only to the connections pipeline that needs it however after debugging I am finding that regardless of the connection, the channel is always the same. So my data transfers are impacting the keep alive. I was able to see this by adding debugging to netty IdleStateHandler and outputting the channel id. Most likely my misunderstanding but I thought each connection would be its own channel.
Any idea on how to add idle state handler to specific connections?