users@grizzly.java.net

detect network disconnected?

From: ichinco <ichinco_at_gmail.com>
Date: Tue, 22 Dec 2009 10:25:49 -0800 (PST)

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.