> 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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to