[JDEV] Dialup and laptop users, lost packets, and faulty presence info

Robert Norris rob at cataclysm.cx
Thu May 16 22:06:46 CDT 2002


> does SO_KEEPALIVE have any application here?
> 
> if the server had KEEPALIVE set on every socket, it would notice the 
> broken connection and could close cleanly...

The problem with SO_KEEPALIVE is that it usually only sends a probe
every two hours, which isn't good enough. Some firewalls and such will
disconnect a session long before this amount of time.

And, this interval can't always be specified. See this for more info:

  http://www.unixguide.net/network/socketfaq/4.7.shtml

"The precise value should be configurable, but I've often found this to
be difficult. The only implementation I know of that allows the
keepalive interval to be set per-connection is SVR4.2."

Rob.

-- 
Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: rob at cataclysm.cx                Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20020517/0f1e0268/attachment-0002.pgp>


More information about the JDev mailing list