how to set different TCP_KEEPALIVE parameters for different socket ?

Marco marco at waven.com
Tue Mar 13 04:58:59 CET 2007


Hi,

I can use sd.setsockopt() to enable the socket use TCP keepalive
feature, but how to set a different parameters(interval, probes and
time) for it?
Sure, I can modify /proc/sys/net/ipv4/tcp_* , but need root password
and will affect other program.

Thank you!


-- 
LinuX Power



More information about the Python-list mailing list