Re: TCP keepalive algorithm

2007-08-15 Thread John Heffner
TCP keepalive only applies to idle connections. Its purpose primarily for cases where the local process waits for data from the peer indefinitely. If the peer disappears or reboots, the connection can tie up resources forever, so you need a keepalive. However, if the local TCP sends data, th

Re: TCP keepalive algorithm

2007-08-15 Thread Christopher Fowler
On one of my servers I've tuned keep alive down to 300 seconds. We have a program that reads only from a remote device. If that remote device dies I need to know as fast as possible. 7200s is just too long of a wait. I'm not suer how much overhead this places on the network but it seems to work

Re: TCP keepalive algorithm

2007-08-15 Thread Jeff Weber
On Wednesday 15 August 2007 12:37, Charlie Brady wrote: > On Wed, 15 Aug 2007, Jeff Weber wrote: > > However, if I: > > > > b) > > enable TCP keepalive on a server, > > lower the default keepalive parameters, > > establish a connection from a client, > > physically disconnect the server network, >

Re: TCP keepalive algorithm

2007-08-15 Thread Charlie Brady
On Wed, 15 Aug 2007, Jeff Weber wrote: However, if I: b) enable TCP keepalive on a server, lower the default keepalive parameters, establish a connection from a client, physically disconnect the server network, periodically send data to the disconnected client socket <-- NEW monitor client s