how to set different TCP_KEEPALIVE parameters for different socket ?

Marco marco at waven.com
Mon Mar 12 23:58:59 EDT 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