Re: SO_KEEPALIVE - a solution for where X servers are shut down?

Andrew C Aitchison <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
On Fri, 10 Jun 2005, Nick Hill wrote:

> The problem:
> When running X programs to a remote X server, if the remote X server
> stops being available, the programs which were being displayed often
> stay running. This results in many stale programs running and using
> resources.
> 
> It appears that by default, xlibs opens TCP sockets to remote X servers
> without setting SO_KEEPALIVE.
...
> If this would work, can anyone consider a reason not to enable SO_KEEPALIVE?

I guess it was set this way so that idle clients don't die randomly
just because the network is busy.
Say you are logged on when you go home for the night (I hate it when 
users do that) with important files open in emacs. For a few minutes
during the night the backups saturate the network and emacs dies.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.