Re: SO_KEEPALIVE - a solution for where X servers are shut down?
Nick Hill <[email protected]>
| Newsgroups | gmane.comp.xfree86.devel |
|---|---|
| Message-ID | <[email protected]> |
Rob Currey wrote: > by default the keepalive interval is 2 hours (rfc1122) I doubt this is > what you are looking for. If running the Linux kernel, the keepalive timer behaviour can be tuned at runtime. Tunable settings are documented here: http://www.die.net/doc/linux/man/man7/tcp.7.html So I could set the timer to kill TCP sockets which are no longer viable after a shorter period. This would keep the server pretty clear of stale, unwanted processes. That is so long as the Xlibs do implement SO_KEEPALIVE and that the Xlibs based programs do actually die when the socket is closed.