SFTP initiates separate TCP session for file upload

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
DanG
500 Command not understood
Posts: 2
Joined: 2008-11-10 15:57

SFTP initiates separate TCP session for file upload

#1 Post by DanG » 2008-11-10 16:30

Scenario:
Server: GlobalScape (configured to allow single session per user)
Client: FileZilla 3.1.5
Proto: SFTP
Problem: Logins always successful; uploads always fail

When using the FileZilla client, packet traces show one TCP session for login, then a second TCP session being initiated for the file upload. The GlobalScape server sees this as a second attempt from the same client and rejects it.

When using the Core FTP LE 2.1 client, packet traces show the same TCP session being used for login and re-used for upload. Uploads work every time.

It appears the second TCP session initiated by FileZilla for the file upload is the problem. One could argue the GlobalScape server isn't being very smart about counting concurrent clients, but because I don't have control over the server, I wonder if this is fix-able client-side.

If a single TCP session is part of the SFTP spec, then it would appear this is a FileZilla bug. If it's not part of the spec, can we get an SFTP configuration option to re-use one TCP session?

Thanks.

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

Re: SFTP initiates separate TCP session for file upload

#2 Post by botg » 2008-11-10 16:54

Very stupid to configure a server in that way. A proper server can easily handle hundreds of users each with hundreds of connections.

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

Re: SFTP initiates separate TCP session for file upload

#3 Post by boco » 2008-11-11 16:50

I don't know if it works for SFTP, but it's worth a try.

You need a Site Manager entry in Filezilla for this server. Then, in the 'Transfer settings' tab, limit the number of simultaneous connections to 1. But I don't know if it concerns TCP connections, also...
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

DanG
500 Command not understood
Posts: 2
Joined: 2008-11-10 15:57

Re: SFTP initiates separate TCP session for file upload

#4 Post by DanG » 2008-11-11 19:22

That did the trick. It re-used the same TCP socket for both logon and file transfer.

What I asked for was there all along!

Thank you, boco.

Post Reply