how to set different TCP_KEEPALIVE parameters for different socket ?

Marco marco at waven.com
Tue Mar 13 05:18:38 CET 2007


Oh, I see,

sd.getsockopt(SOL_TCP, TCP_*)

On 3/13/07, Marco <marco at waven.com> wrote:
> 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
>


-- 
LinuX Power



More information about the Python-list mailing list