Transfer multiple file within single connection

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
mcgyver83
504 Command not implemented
Posts: 6
Joined: 2012-07-09 13:03
First name: stefano

Transfer multiple file within single connection

#1 Post by mcgyver83 » 2023-08-13 16:55

Hi,
I'm running ProFtpd on a raspberry pi2 and I'm using FileZilla from mac and windows 7 laptop.

I'm using FTPS (require explicit FTP over TLS) and I want to upload 3500 files.
I see that for each file a new connection is create, handshake, authentication and so on... it takes a lot of time :(
Is it possible to configure FileZilla to reuse the same connection for multiple files so I can save time enstablishing connection only once?

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

Re: Transfer multiple file within single connection

#2 Post by botg » 2023-08-13 21:29

The way FTP works you have two types of connections: Control connections, over which commands and replies are sent, and data connections over which the actual files and directory listings are sent.

While control connections can be used for any number of commands, each individual file transfer and directory listing must use a separate data connection, which does involve the unavoidable TCP handshake and, if TLS is used, a TLS handshake. Fortunately in case of TLS, the data connection handshake is sped up massively thanks to TLS session resumption, which in this case doubles as an important security mechanism, authenticating the data connection.

mcgyver83
504 Command not implemented
Posts: 6
Joined: 2012-07-09 13:03
First name: stefano

Re: Transfer multiple file within single connection

#3 Post by mcgyver83 » 2023-08-24 19:07

Many thanks for the reply.

Is "TLS session resumption" a server configuration? How can I leverage this in my setup?

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

Re: Transfer multiple file within single connection

#4 Post by botg » 2023-08-24 22:29

With secure FTP over TLS products, TLS session resumption is not a configuration option, it simply is mandatory.

Post Reply