Re: FTP keep alive connection
Date: Thu, 8 Nov 2007 16:34:07 +0000
Michel Loiseleur wrote:
> To the contrary, the SO_KEEPALIVE approach is working
> well. The patch is nonintrusive and do not force us to add some more
> flags or more options on compile time.
Well, you still should check if SO_KEEPALIVE is defined, else it won't
compile on some other systems.
> Here is the sysctl call :
> $ sudo sysctl -w sysctl -w net.ipv4.tcp_keepalive_time=x
> With the small patch attached and x=60 for the sysctl call, we do not
> encounter any more lost connection during long transfer.
You don't need the sysctl.
As you're already using the SO_KEEPALIVE, you can use TCP_KEEPIDLE to
set the time as well (it's used with setsockopt in exactly the same
Received on 2007-11-08