users@grizzly.java.net

Re: detect network disconnected?

From: Sebastien Dionne <survivant00_at_gmail.com>
Date: Tue, 22 Dec 2009 17:05:04 -0500

can this blog help you ?

http://weblogs.java.net/blog/2008/11/25/grizzly-how-be-notify-when-client-disconnect



2009/12/22 ichinco <ichinco_at_gmail.com>

>
> Hello, all,
>
> Is there a way to tell on the server-side whether a client has lost network
> connection (ie, network cable pulled)?
>
> The channel doesn't get closed automatically,
> SelectionKey.channel().isOpen() reports true, and if I try to write to it
> (OutputWriter.flushChannel), there is no IOError. Is there a fool-proof way
> to tell whether the channel is still open from the server side?
>
> Thanks!
> --
> View this message in context:
> http://old.nabble.com/detect-network-disconnected--tp26891745p26891745.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>


-- 
-------------
A+
Sébastien.
Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
http://twitter.com/survivant