db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Hlavatý <hla...@code.cz>
Subject Re: Help detecting client disconnects for network server
Date Sun, 10 Oct 2004 12:35:17 GMT
> SO_KEEPALIVE works, even for blocking in reads.
> I have tested it.

Tried both windows XP and linux (FC2), configured for 30 second keepalive interval.
Both throw SocketException as specified after the keepalive probes fail, when I'm in blocking
read().

Bad thing is, without system wide configuration change, timeout defaults to 2 hours.
So it looks like a good idea to configure shorter interval on server machine.

In any case, network server should certainly enable SO_KEEPALIVE on client connections.

Jan

Mime
View raw message