Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP timeout when connecting to a dead host

Status
Not open for further replies.

gcazian

MIS
Dec 4, 2002
61
US
I am trying to figure out how to change the timeout setting in ftp when attempting to connect to an unreachable host.

For example:

$> time (echo quit | ftp 10.50.50.11) # bogus host
ftp: connect: A remote host did not respond within the timeout period.

real 2m32.16s
user 0m0.00s
sys 0m0.01s

So it appears that ftp times out after ~150 seconds.

Note: this timeout setting is different from the idle timeout session in /etc/inetd.conf:

ftp stream tcp nowait root /usr/sbin/ftpd ftpd -t 1800

Any help would be greatly appreciated. Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top