Closing Inactive Connections?
brunodecarvalho
kindernade at gmail.com
Sat Aug 7 11:21:52 EDT 2010
Nitro,
Have your ChannelHandler extend IdleStateHandler
(http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/timeout/IdleStateHandler.html)
rather than SimpleUpstreamChannelHandler. This version notifies you of
read/write/read&write inactivity.
Also, make sure you share the same instance of HashedWheelTimer across all
these handlers rather than use one per channel.
Cheers,
Bruno
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Closing-Inactive-Connections-tp5383249p5383764.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list