Deleting large number of files over FTPS disconnecting

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
xmms
Junior Member
Junior Member
Posts: 4
Joined: 2023-03-10, 11:22 UTC

Deleting large number of files over FTPS disconnecting

Post by *xmms »

When connected to ftps://server, deleting large number of files (thousands) causes total commander to disconnect very often. And also it freezes during transferring files to a server or from a server for a few seconds and then continues.
It does that only with ftps. It works correctly using ftp only. I think it's a bug in TC. Is it possible to fix it? I am using the latest version 10.52 64bit.
For testing just take a folder with 5000 files and copy it to ftps somewhere and then delete.

See the picture:
Image: https://ibb.co/QKTH0mS
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Deleting large number of files over FTPS disconnecting

Post by *ghisler(Author) »

Do you see anything in the log file? You can create it via Configuration - Options - FTP.
Author of Total Commander
https://www.ghisler.com
xmms
Junior Member
Junior Member
Posts: 4
Joined: 2023-03-10, 11:22 UTC

Re: Deleting large number of files over FTPS disconnecting

Post by *xmms »

After deleting bunch of files it ended with error 10054. I can continue deleting files after reconnecting and then it fails again.

RMD Client
250-170622 Kbytes used (17%) - authorized: 976562 Kb
250 The directory was successfully removed
PWD
OFFLINE2, error=10054
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Deleting large number of files over FTPS disconnecting

Post by *ghisler(Author) »

TCP/IP error 10054 is "connection reset by peer" - it usually happens when the internet connection is unstable and you have temporary connection losses.
Author of Total Commander
https://www.ghisler.com
xmms
Junior Member
Junior Member
Posts: 4
Joined: 2023-03-10, 11:22 UTC

Re: Deleting large number of files over FTPS disconnecting

Post by *xmms »

Hello,
Thank you for the reply. I tested it and found out that the problem causes windows firewall:

https://www.febooti.com/products/automation-workshop/online-help/disable-stateful-ftp-filtering/
https://winscp.net/eng/docs/message_disconnected

It keeps disconnecting using another ftps software too. It does that on my local network too where I have an FTP server. It's not a problem with internet connection.
So, it needs a setting like this and then it works perfectly:

Code: Select all

netsh advfirewall set global StatefulFTP disable
netsh advfirewall show global StatefulFTP
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Deleting large number of files over FTPS disconnecting

Post by *ghisler(Author) »

Nice find, that actually makes some sense because with FTPS the FTP command connection is encrypted, so the stateful ftp inspector cannot see what's happening...
Author of Total Commander
https://www.ghisler.com
xmms
Junior Member
Junior Member
Posts: 4
Joined: 2023-03-10, 11:22 UTC

Re: Deleting large number of files over FTPS disconnecting

Post by *xmms »

But the question is why it does that only sometimes during the deletion. I was deleting like 7000 files and it disconnected 5 times. And I did not test it with a different firewall, maybe could be better.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Deleting large number of files over FTPS disconnecting

Post by *ghisler(Author) »

Maybe it depends on the port number? FTP uses random port numbers for the data transfers.
Author of Total Commander
https://www.ghisler.com
Post Reply