DD1984 / sockperf

Automatically exported from code.google.com/p/sockperf
Other
1 stars 0 forks source link

Clean up idle TCP connections #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
imported from: http://argus-bg.dnsalias.org/issues/673

The server may need a way to recognize and clean "old" sockets that are not 
in use any more (i.e., client's TCP stack didn't send FIN packet).

Original issue reported on code.google.com by igor.ivanov@itseez.com on 4 Apr 2011 at 7:47

GoogleCodeExporter commented 9 years ago
Avner,
do you see necessity in additional command line option to enable keepalive 
capacity on request.
can SO_KEEPALIVE option be used to introduce this ability.

Original comment by igor.ivanov@itseez.com on 21 Apr 2011 at 8:21

GoogleCodeExporter commented 9 years ago
no need for additional command line switch.  This is standard behavior for a 
decent server.

(BTW, I think that on UNIX it may take SO_KEEPALIVE hours to recognize dead 
connection; hence, this soultion is not valid with conventional servers.  
Anyhow, this feature is low priority, hence, please ignore it at the moment)

Original comment by avne...@gmail.com on 27 Apr 2011 at 10:07