TC stops sending periodic FTP keep-alive messages?

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Chesterfield
Junior Member
Junior Member
Posts: 3
Joined: 2014-07-25, 07:10 UTC

TC stops sending periodic FTP keep-alive messages?

Post by *Chesterfield »

Hi, I'm using TC 8.5x and I have noticed that TC always reports a FTP connection as 'broken' after it has been idle for while.

TC is configured to send a PWD message every 25s on this connection and it happily does so when the connection is opened.
However, after an hour or so (varying) it simply stops sending those messages.

A wireshark trace showed nothing special with the last message exchange,
so as far as I can see there's no server-involvement here (the server is IIS).
Also, there's nothing out of the ordinary in the TC (FTP) logs.

Anybody else seen this?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Keep alive in TC is currently (intentionally) limited to 1 hour maximum. This is to handle the situation where a user forgets a connection, to avoid that it stays open forever.
Author of Total Commander
https://www.ghisler.com
Chesterfield
Junior Member
Junior Member
Posts: 3
Joined: 2014-07-25, 07:10 UTC

Post by *Chesterfield »

Ah, I had overlooked that in the documentation and forum.
Is there any (undocumented) config setting to work around this :D

Also, perhaps it is an idea for TC to properly close the connection after the hour?
Right now, there seems to be a time period after the hour in which TC tries to still use the old connection. In such cases, the server may have already timed-out on the connection and TC gets stuck in a very lengthy TCP retransmission session during which you get 'command in progress' mesages from TC.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately there isn't. You could use autohotkey or so to send Ctrl+R from time to time...
Author of Total Commander
https://www.ghisler.com
Post Reply