TC hangs while copying to FTP connection which is lost

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

TC hangs while copying to FTP connection which is lost

Post by *MVV »

I have some FTP connection with virtual machine FTP server in a tab. Sometimes I choose this tab and TC says something like 'connection is lost. reconnect?'. I answer Yes, all work fine.

But if I try to copy files to other panel with this tab and connection is lost TC hands for some time (as I see it reports 'permission denied') and then asks 'Transfer failed, continue operation?'. It seems that TC tries to wait for some time to repeat transfer and it does so for every file to be copied. It is not possible to cancel this operation.

This bug is VERY annoying for me because every time it happens I need to wait for 5-10 seconds before TC become responsible again.

I can see same effect when I'm trying to copy to write-protected FTP folder - I need to wait for 5-10 seconds before TC say 'Transfer failed, continue operation?'. BTW when TC needs to create folder before copying file(s) it reports error immediately.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I've noticed this as well, though usually when it occurs I'm in the middle of a project and can't be distracted to post about it.

It doesn't always occur though, so I haven't nailed down what exactly triggers it. As often it will just reconnect...

Total Commander's FTP doesn't react well when your internet connection or DNS is down either, that takes an exceedingly long time to time out.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

I found the problem with uploading to write-protected folders before: http://ghisler.ch/board/viewtopic.php?t=27062
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

The main trouble that TC ignores Cancel button clicks during theese timeouts so I can't cancel operation immediately - I need to wait.

And, it is interesting why there is no such delay on create directory operation.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50512
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I cannot offer you a solution. Handling unstable connections is really difficult.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Maybe you can improve reaction on Cancel button clicks (Escape presses)? If user presses Cancel TC should cancel operation immediately and not after 10 seconds of freezing...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50512
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Normally it shouldn't freeze - TC uses the windows sockets callback function which is called by the system when a system hangs. Do you use ipv6 functions in TC (preferipv6 in wincmd.ini)? It seems that then the callback isn't called.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I hadn't set preferipv6 option so it should have its default value.

BTW I did some test at home and should say that I have same bug on Windows XP too. I have some FTP server on local machine. I opened it in one panel and then deactivated. Then I tried to copy some file from another panel to FTP folder... And I couldn't click Cancel button because TC hung. :( It is a very significant delay before TC is responsible again...

(BTW I have disabled IPv6 in LAN connection at home at all.)
Post Reply