1833694 Members
3651 Online
110062 Solutions
New Discussion

Re: FTP Timeout

 
Mike Ingram_1
Frequent Advisor

FTP Timeout

Hello!
From the HP, I am trying to connect (using FTP) to a remote site across a VPN link. Occasionally the connection fails, but it takes two hours for the prompt and failure message to be returned to the screen.
How can I adjust this time to be five minutes or less?
Many thanks.
1 REPLY 1
Ron Kinner
Honored Contributor

Re: FTP Timeout

Believe the tcp_keepalive_interval in ndd is the parameter you want.

ndd -h

will tell you what is available.

ndd -h tcp_keepalive_interval

should explain what the parameter does and what values it can take. Think it uses milliseconds.

If you decide to change it then

ndd -set /dev/tcp tcp_keepalive_interval x

and be sure to edit /etc/rc.config.d/nddconf to make it stick after a reboot.

Believe you may need to change a few other tcp parameters like

tcp_rexmit_interval_initial tcp_rexmit_interval_max
tcp_rexmit_interval_min

See:

http://colin.bitterfield.com/files/tcp-performance

for some suggested values.

Ron