Data connection timeout

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
James2014
500 Syntax error
Posts: 14
Joined: 2014-04-07 00:13
First name: James

Data connection timeout

#1 Post by James2014 » 2014-04-17 14:19

Hi,

Are there any plans to change the FileZilla data connection timeout from 60 seconds?
Waiting for the SFTP connection to re-establish every 3-4 mins intervals is hard going as I do this all through the day (ie 10 hours).

Apart from the inconvenience, isn't it arguably less secure sending credentials every few mins, than just leaving the connection open?
Or is there a specific reason you have this timeout?

Cheers

Bronxgodzilla
450 Internal Error
Posts: 39
Joined: 2009-06-13 11:18

Re: Data connection timeout

#2 Post by Bronxgodzilla » 2014-04-17 15:00

James
You can set your own timeout length in seconds in Edit / Settings / Timeout -- right there at the 2nd box from top.

BarryG

James2014
500 Syntax error
Posts: 14
Joined: 2014-04-07 00:13
First name: James

Re: Data connection timeout

#3 Post by James2014 » 2014-04-17 15:10

Already have that to 0. Timeout still occurs after 60 seconds.

boco wrote: data connections are used for the actual transfers and disconnect 60 seconds after transfers have finished. So if your next transfer is not within 60 seconds the data connection has to be reestablished. That's simply how it works, the data connections timeout can not be changed.
Quote Post

This does not happen in other clients. Tested in gFTP and I can come back to the open connection 10+mins after and all connections are still live. Uploading a file is instant.

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Data connection timeout

#4 Post by botg » 2014-04-18 06:44

FileZilla is not other clients.

James2014
500 Syntax error
Posts: 14
Joined: 2014-04-07 00:13
First name: James

Re: Data connection timeout

#5 Post by James2014 » 2014-04-18 14:32

botg wrote:FileZilla is not other clients.
Hmm. I hadn't noticed, but after some evaluation, I see your point...Schoolboy error on my part...

I just meant that as gFTP had no timeout it shows it's likely the setting in Filezilla, and there are no issues with, eg, firewall, router, remote server, etc.
Wasn't comparing. The whole point of me being here discussing it is I prefer Filezilla, otherwise, I'd have just used gFTP ;)

Are there any plans to change the FileZilla data connection timeout from 60 seconds? Even 5 mins would be a huge advantage.
I presume there is a specific reason for the 60 seconds.

Cheers

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Data connection timeout

#6 Post by botg » 2014-04-18 18:32

One minute is a nice round number. Also I think it's neither too short nor too long.

How long does reconnecting take in your situation?
Apart from the inconvenience, isn't it arguably less secure sending credentials every few mins, than just leaving the connection open?
Arguably, if the handshake employs Perfect Forward Secrecy, making new connections can be more secure than reusing the same connection for a long time. :)

A reconnect once a minute is harmless from a security standpoint.

James2014
500 Syntax error
Posts: 14
Joined: 2014-04-07 00:13
First name: James

Re: Data connection timeout

#7 Post by James2014 » 2014-04-18 20:26

botg wrote:How long does reconnecting take in your situation?
10 to 15 seconds, but it's annoying as the frequency is every 2 to 5 mins on average.
When one has a vast amount of things going on at any one time, completely halting workflow to stare at the screen 15 or 20 times an hour is annoying (I can have half a class written in that time :D )
botg wrote:Arguably, if the handshake employs Perfect Forward Secrecy, making new connections can be more secure than reusing the same connection for a long time. :)
Fair point. I suppose if it is secure then doesn't matter what you do.
I believe someone once said something about nuclear launch codes on one's desktop...


10 mins would be perfect, and not just for me, I think that's logical regardless of one's specific scenario.
Waiting 10+ secs every 2 to 10 mins is frequent and as such annoying. Whereas a frequency above 10 mins is (relatively) less annoying (considering one has to draw a line somewhere).

I see a lot of people attempt to troubleshoot (and complain) about it around the net. So maybe it would be worthwhile, in as much as it will relieve a lot of users (there's a dirty joke about handshake somewhere there..)
Or, of course, default to whatever and allow users to specify.

Other than that, fantastic piece of software, especially as you support all OSs.

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Data connection timeout

#8 Post by botg » 2014-04-19 07:28

James2014 wrote:10 to 15 seconds, but it's annoying as the frequency is every 2 to 5 mins on average.
Whoah, that's long. What's your round-trip latency to the server?

James2014
500 Syntax error
Posts: 14
Joined: 2014-04-07 00:13
First name: James

Re: Data connection timeout

#9 Post by James2014 » 2014-04-19 13:05

Average RTT is 20ms pinging 20 X 1kB packets.
traceroute showed 11 hops (Layer3 hops only, of course)

Code: Select all

user1@pc1:~$ ping -q -c 20 -s 1000 91.208.99.6
PING 91.208.99.6 (91.208.99.6) 1000(1028) bytes of data.

--- 91.208.99.6 ping statistics ---
20 packets transmitted, 20 received, 0% packet loss, time 19025ms
rtt min/avg/max/mdev = 17.017/20.027/36.515/4.327 ms
Same RTT with standard 56B packets.

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Data connection timeout

#10 Post by botg » 2014-04-20 08:53

That's strange. Even over a slow transatlantic connection I can connect to SFTP servers in about 2 seconds. With your latencies you shouldn't need more than a second to connect.

It looks like a server problem, with the server for some reason introducing several seconds of delay before continuing to connect.

James2014
500 Syntax error
Posts: 14
Joined: 2014-04-07 00:13
First name: James

Re: Data connection timeout

#11 Post by James2014 » 2014-04-20 10:46

Thanks for the info.

I already poked my provider (who are pretty good). I'll re-poke them.

Any other possibilities to consider my end?
I'm on FileZilla 3.5.3, Debian 7.4 AMD64


EDIT:
When FZ drops the data connection after 60 seconds, does FZ need to re-establish login with the SSH (SFTP) server again?
i.e. in the same way initial login occurs? Or does FileZilla remain "logged in" and just needs to re-establish the data connection (which does not require login credentials etc)?

User avatar
boco
Contributor
Posts: 26910
Joined: 2006-05-01 03:28
Location: Germany

Re: Data connection timeout

#12 Post by boco » 2014-04-20 16:35

Full login and handshake is performed. Transfer connections are independent.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

James2014
500 Syntax error
Posts: 14
Joined: 2014-04-07 00:13
First name: James

Re: Data connection timeout

#13 Post by James2014 » 2014-04-20 16:50

Thanks boco, that explains it for me.
It takes 10 seconds on average to log in to the shell system on my hosting. (They have plans to improve it)

botg - How much beer would you want to change the 60 seconds in FZ? :D

Thanks both. I wasn't aware it was full login following data connection timeout.

User avatar
boco
Contributor
Posts: 26910
Joined: 2006-05-01 03:28
Location: Germany

Re: Data connection timeout

#14 Post by boco » 2014-04-20 16:59

If there was a setting to raise the timeout for data connections, I'd definitely use it for slow servers (should be Site Manager setting).
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Post Reply