Hello all!

I have sporadic problems with TFtpClient where OnSessionClosed event of 
DataSocket not always fired. Especially if FTP Server is on the LAN, or on the 
same machine as FTP Client and Firewall/Antivirus Software (in my case 
Kaspersky Internet Security V6) on the client machine is installed.

Mostly the problem occurs with synchronous actions and when ftpWaitUsingSleep 
is activated. But also (however seldom)  without  ftpWaitUsingSleep option and 
even with completely Asynchronous logic. Important: if I deactivate my AV 
Software, all runs without any problems. BUT I don't think Kaspersky is 
responsible for this problems, because other Clients (i.e. FlashFXP or 
Filezilla or ftp.exe) works just fine.

I can reproduce this problem with all ICS Versions (5 and 6). This is what I do 

Compile and Start OverbyteIcsFtpServ.exe
Compile OverbyteIcsFtpTst.exe (add ftpWaitUsingSleep option to FTP Client 
options) -> start -> activate options: Passive mode, Synchronous -> click on 
buttons: connect (we connect to local host) -> pwd -> dir. 

Finito. We wait until timeout occurred.

-------- Server Protocol

FtpServer (c) 1998-2007 F. Piette V1.09
Using:
    TWSocket (c) 1996-2007 Francois Piette V6.08 
    TFtpServer (c) 1998-2007 F. Piette V1.53 
    Winsock:
        Version 2.2
        WinSock 2.0
        Running
! Server started
! 127.0.0.1 connected
< 127.0.0.1 USER anonymous
> 127.0.0.1 331 Password required for anonymous.
< 127.0.0.1 PASS [EMAIL PROTECTED]
! 127.0.0.1 User 'anonymous' is authenticated
> 127.0.0.1 230 User anonymous logged in.
< 127.0.0.1 PWD 
> 127.0.0.1 257 "/C:/TEMP" is current directory.
< 127.0.0.1 PASV 
> 127.0.0.1 227 Entering Passive Mode (127,0,0,1,11,140).
< 127.0.0.1 LIST 
> 127.0.0.1 150 Opening data connection for directory list.
> 127.0.0.1 501 Cannot RETR. Error - Socket is not connected (#10057)
! 127.0.0.1 Data session closed. Error #10057
! 127.0.0.1 disconnected

---------- Client Protocol

Winsock version 2.2
WinSock 2.0
Running
Executing Requested Command
< 220-Welcome to my Server
< 220-
< 220 ICS FTP Server ready.
Session Connected, error = 0
> USER anonymous
< 331 Password required for anonymous.
> PASS [EMAIL PROTECTED]
< 230 User anonymous logged in.
Request 5 Done.
StatusCode = 230
LastResponse was : '230 User anonymous logged in.'
No error
Command Success
Executing Requested Command
> PWD
< 257 "/C:/TEMP" is current directory.
Request 32 Done.
StatusCode = 257
LastResponse was : '257 "/C:/TEMP" is current directory.'
No error
Directory is "/C:/TEMP"
Command Success
Executing Requested Command
> PASV
< 227 Entering Passive Mode (127,0,0,1,11,140).
> LIST
< 150 Opening data connection for directory list.
Session Closed, error = 0
Command Failure
Request 7 Done.
StatusCode = 426
LastResponse was : '150 Opening data connection for directory list.'
Error = 426 (426 Timeout)


I use:

Windows XP SP2 (all patches), Delphi 2005 and ICS V5, Kaspersky Internet 
Security V6 (Please notice: Firewall is deactivated! Only Mail Antivirus is 
activated)

Have somebody else confronted with such problems? Can anybody help?

-
Thanks for any help & best Regards, A.Svetov
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to