Netty dead connects
Marc-André Laverdière
marcandre.laverdiere at gmail.com
Tue Jan 11 07:27:35 EST 2011
You can use a time out handler.
Essentially, Netty is very much event-driven, so there is not much
polling to do. You just need to add to your pipeline and then handle
the event :)
Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and
complete, not lacking anything." -James 1:4
http://asimplediscipleslife.blogspot.com/
mlaverd.theunixplace.com
2011/1/7 sifman <watsis at hotmail.com>:
>
> I apologise if this has been posted before. I did scan through some of the
> messages and didn't really find anything related.
>
> I just want to know if there is a standard way of dealing with potential
> "dead" connections. I know when I still used MINA I was able to check the
> last time there was a successful write on the connection
> (ioSession.getLastWriteTime()). By doing that I could determine if I'm
> dealing with an unusual long idle connection.
>
> Is there an equivalent way of accomplishing this with Netty? From what I
> see in the Channel API it is not so straightforward to do this.
>
> Hopefully I'm missing something.
>
> Any help is appreciated.
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-dead-connects-tp5900060p5900060.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
More information about the netty-users
mailing list