Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

How can I change the FTP timeout

To be other than 300 seconds



6:32 pm on Mar 7, 2002 (gmt 0)

10+ Year Member

Yes, I've searched the Web on this, but with no success.

Whenever I run a program that does ftp uploading, and I connect to my hosting service's server, and I do some other work, the program disconnects after 300 seconds. I can easily use up 5 minutes just preparing files for upload.

Does anyone know how I can change the timeout value?

Is this done on the client or on the server?

If relevant, I am using Windows 98. My hosting service uses Apache/Unix. I don't know what ftp server they use.



6:42 pm on Mar 7, 2002 (gmt 0)

10+ Year Member

what FTP client are you using? Generally (well, with SmartFTP and CuteFTP..what I use) you can set the timeout in the client properties.


1:11 am on Mar 8, 2002 (gmt 0)

10+ Year Member

It happens with any ftp program. One that I use is SmartFTP; I asked them and they thought it had to be done on the server.

I've explored SmartFTP and cannot find such a property.



1:34 am on Mar 8, 2002 (gmt 0)

10+ Year Member

I don't know too much about this problem but I'll throw in an idea.

I'm guessing that the server you are ftping to is apache (60% of the web is so it's a good bet). The default httpd.conf configuration is Timout 300.

It's my understanding that when the browser requests a page from the server it creates one connection, which usually lasts between 0 and 5 seconds. The timeout setting is the maximum time one request can last on the server before it is cut loose, otherwise the server would slow and crash.

Is it possible you are connecting via http rather then ftp? That would explain the timeout after 300 seconds.

Any thoughts?


3:20 am on Mar 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Welcome to WmW david752! The timeout is controlled by the server. The idea is to avoid have a lot of inactive connections open and using up the resources this entails.

CuteFTP (for one) can be configured to maintain a connection indefinitely by periodically sending "do nothing" commands to the server before it times out. CuteFTP calls this "Smart Keep Alive," there are probably other FTP clients that can do something similar.


11:24 am on Mar 8, 2002 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Additionally, most newer ftp servers can be set to ignor the noop command. Some go so far as to even discount directory listings (you have to up/download something to restart the idle timer).

Featured Threads

Hot Threads This Week

Hot Threads This Month