> > maybe we should fix our SERVER apps..
> > e.g. telnetd, sshd, etc. to have 1 week timeouts
> 
> IIRC, it is not possible to specify how long the keepalive interval
> should be, using the socket interface.  Do you suggest we add a new
> interface not present in other Unix implementations, or that we make
> SO_KEEPALIVE always have a one-week timeout, surprising the other
> applications that expect it to be faster?

There *is* a well defined interface for this, namely the TCP_KEEPALIVE
socket option. This is a *per connection* keepalive timer, and is
implemented by for instance Solaris 2.6. See

  http://www.unix-systems.org/single_unix_specification_v2/xns/xti.h.html

Also mentioned in Stevens vol. 2 as far as I can remember.

If the FreeBSD kernel implemented TCP_KEEPALIVE, it would be rather
simple to set this on an application basis. (No, unfortunately, I'm
not offering to implement it.)

Steinar Haug, Nethelp consulting, sth...@nethelp.no


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to