-problem with FTP connection

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
Dennis41
Junior Member
Junior Member
Posts: 14
Joined: 2013-05-18, 13:24 UTC

-problem with FTP connection

Post by *Dennis41 »

I start a previously saved FTP connection session. Password is required so I put it on. After a while the FTP connection dialogue disappears and nothing happens - no connection, no error or whatsoever message. Tried several times, still the same result. Two hours earlier it worked correctly! I mean - I was connected.
Using Total Commander 8.50 beta 15, WinXP Service Pack 3, 32 bit
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please turn on logging in Configuration - Options - FTP, then try to reproduce the problem and post the log here. You may replace sensitive names by others, but please do not delete anything.
Author of Total Commander
https://www.ghisler.com
Dennis41
Junior Member
Junior Member
Posts: 14
Joined: 2013-05-18, 13:24 UTC

Post by *Dennis41 »

----------
Connect to: (19.01.2014 18:51:11)
hostname=kickaxe.wz.cz
username=kickaxe.wz.cz
startdir=
kickaxe.wz.cz=88.86.113.152
220 FTP Server ready.
USER kickaxe.wz.cz
331 Password required for kickaxe.wz.cz
PASS ***********
OFFLINE4, no reply
QUIT
----------
Connect to: (19.01.2014 18:52:22)
hostname=kickaxe.wz.cz
username=kickaxe.wz.cz
startdir=
kickaxe.wz.cz=88.86.113.152
220 FTP Server ready.
USER kickaxe.wz.cz
331 Password required for kickaxe.wz.cz
PASS ***********
OFFLINE4, no reply
QUIT
----------
Connect to: (19.01.2014 18:53:16)
hostname=kickaxe.wz.cz
username=kickaxe.wz.cz
startdir=
kickaxe.wz.cz=88.86.113.152
220 FTP Server ready.
USER kickaxe.wz.cz
331 Password required for kickaxe.wz.cz
PASS ***********
230 User kickaxe.wz.cz logged in.
SYST
215 UNIX Type: L8
FEAT
211-Features:
MDTM
MFMT
AUTH TLS
MFF modify;UNIX.group;UNIX.mode;
MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
PBSZ
PROT
REST STREAM
SIZE
211 End
OPTS UTF8 ON
500 OPTS UTF8 not understood
Connect ok!
PWD
257 "/" is the current directory
Složka
TYPE A
200 Type set to A
PORT 109,239,64,203,5,107
200 PORT command successful
MLSD
150 Opening ASCII mode data connection for MLSD
Stahování
Čekání na server...
226 Transfer complete
QUIT
221 Goodbye.



I discovered that this problem occurs when I have an USB stick connected to PC. Strange behaviour. When I disconnect the USB stick the FTP connection works again.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OFFLINE4 is a connection timeout - TC 8.01 have a fixed timeout of 10 seconds.

Since you are using 8.50 beta, you can increase the timeout:

Please add the line
DataConnectTimeout=30
to the file wcx_ftp.ini, section [General]

You can edit the wcx_ftp.ini via Configuration - Change settings files directly. Make sure to add the line to the wcx_ftp.ini, not to the (also opened) file wincmd.ini.
Author of Total Commander
https://www.ghisler.com
Dennis41
Junior Member
Junior Member
Posts: 14
Joined: 2013-05-18, 13:24 UTC

Post by *Dennis41 »

I changed the settings according to your instruction and it seems that the problem is solved. At least the FTP connection for the time being I tried it was working fine, even with the USB stick connected to my PC.

Thanks for your help and for your time. Keep up the good work with Total Commander!!!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I just checked my code - there was no timeout at all in TC 8.01 and older, so an ftp connection could hang forever. It has been set to 20 seconds in TC 8.5 for these calls, not 10. I have increased it to 30 seconds now (for the next beta) for calls during the connection phase. I don't want to remove it completely, so I can detect a hanging connection and try to reconnect automatically.
Author of Total Commander
https://www.ghisler.com
Dennis41
Junior Member
Junior Member
Posts: 14
Joined: 2013-05-18, 13:24 UTC

Post by *Dennis41 »

Maybe it would be useful to set this timeout for 10 seconds as a default value and also give the user possibility to change to a few different options in the "Configuartion | FTP"
Post Reply