[bug/req] Consistent behavior on FTP after lost connection

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

[bug/req] Consistent behavior on FTP after lost connection

Post by *ado »

Shortly: after FTP server drop connection to TC because of long inactivity, only consistent behaviour is while attempt to change directory.
Example: I got disconnected, but I still see content of FTP panel. I am going to first line ".." and press Enter. TC tells me about dropped connection (press ENTER) and ask me if I want to reconnect (sure I want - second ENTER) and now: TC reconnects and changes directory - what is correct, I wanted to change directory.
All another commands (View, Edit, Copy...) file on dropped connection works slightly different (I think incorrent). If I press F3 to view file in dropped connection panel, I get 2 dialogs and 2xENTER and that's it. To view the file I have to press F3 again :?

On my own, there are 3 ways to make it consistent: bad, quite good and perfect:
bad: change directory will stop work as it works now - hopefully no one would choose this way
quite good: when I press let's say F3 (F4...) on dropped connection panel, I have to press ENTER twice, but it will show the file as well
perfect: when I press let's say F3 on dropped connection panel, TC will show me file without questions, e.i. I know it is FTP and connection could be down, but I WANT to see that file. I do not care that connection is dropped. Just reconnect it and show me the file.
Maybe on dial-up connection it may seem in different light, but I am working 99% on local FTP servers...

What do you think?

ado
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Support!
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Support ++
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: [bug/req] Consistent behavior on FTP after lost connecti

Post by *Sheepdog »

ado wrote:perfect: when I press let's say F3 on dropped connection panel, TC will show me file without questions, e.i. I know it is FTP and connection could be down, but I WANT to see that file. I do not care that connection is dropped. Just reconnect it and show me the file.
I think this is it what almost all of the users want (and expect).

Support++.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Support++.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
szlori
Senior Member
Senior Member
Posts: 263
Joined: 2005-01-17, 07:12 UTC
Location: Sydney

Post by *szlori »

If there would be any complaint about the "perfect" solution, I suggest to make it configurable.
Otherwise I completely agree.
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

Support!
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
Dominik
Member
Member
Posts: 101
Joined: 2003-02-09, 20:46 UTC

Post by *Dominik »

Support
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately this is impossible. The server does NOT tell TC when it disconnects, so the only way to find out is to try to send commands to the server - and this can happen somewhere deep in a copy function or so, where it is impossible to reconnect...
Author of Total Commander
https://www.ghisler.com
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

:-( :-( :-(

ado
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

But why not automatically reconnect if the connection is lost.

I know there is software you can do this already - when a particular window appears always the 'yes' or 'okay' buton is pressed so quick that you can't even see the window appear on the screen.

BTW I would like such an option every time TC asks if to rebuild the lost FTP connection.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
tribbiani
New Member
New Member
Posts: 1
Joined: 2005-07-28, 09:42 UTC

Post by *tribbiani »

With the ftp-plugin for Servant Salamander you get a message box when the connection is down and why, e.g no-transfer-time exceeded. And you can set in the options to automatically reconnect (or another message box to reconnect or not).

This should work for TC too i hope.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)
The server does NOT tell TC when it disconnects, so the only way to find out is to try to send commands to the server
But when TC discovers that the connection is lost, which for example happens when a new command is send - then TC should carry out the command after reconnecting - in stead of the user having to do it once again :!:
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, it can happen in the middle between some PORT and LIST command - you can't just reconnect and resend the LIST command, you have to resend from the beginning, starting with username, password, switching to the correct subdir, binary mode, port etc. etc.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

That shouldn't be a big problem, as TC keeps a log of all these operations.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply