--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> does SO_KEEPALIVE have any application here?
>=20
> if the server had KEEPALIVE set on every socket, it would notice the=20
> 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.

--=20
Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: [EMAIL PROTECTED]                Web: http://cataclysm.cx/

--X1bOJ3K7DJ5YkBrT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE85HPGWb13Z/wY5sIRAkaEAJ9iiWFd8Xg2YUUpChku196/ctTNfgCffA2v
FRJoITvZhtZYbqrDtJQU5rk=
=x9FC
-----END PGP SIGNATURE-----

--X1bOJ3K7DJ5YkBrT--

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to