Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: ptConnectionAborted
User126

Posts: 4
Member Since: 04/09/02
posted April 9, 2002 5:20 PM


I'm developing a client app using VC++ and the tool is throwing a ptConnectionAborted error during logoff. This problem does not occur if I only logon and logoff without performing a Send. Is there something I need to do to gracefully close the data port prior to issuing a Logout()? Or could the problem be that the server (WS-FTP) is not sending an expected ACK after it receives the quit command?
The state of the tool was tcpConnected prior to calling Logout() and the InProgress() event fired with the completed Logout command prior to the Error() event. The captured log file follows:

Any thoughts?

STATE Connecting State
STATE Connected State
PROG FtpCmd ftpOk ftpReinitialize
PROG FtpCmd ftpOk ftpUser
PROG FtpCmd ftpOk ftpPassword
<< 220 10.200.1.1 X2 WS_FTP Server 2.0.3 (1537625340)
>> USER user
<< 331 Password required
>> PASS password
<< 230 user logged in
PROG FtpCmd ftpInProgress ftpType
PROG FtpCmd ftpInProgress ftpPassive
PROG FtpCmd ftpInProgress ftpStore
PROG FtpCmd ftpInProgress ftpStore
PROG FtpCmd ftpOk ftpStore
>> TYPE I
<< 200 Type set to IMAGE.
>> PASV
<< 227 Entering Passive Mode (10,200,1,1,6,89).
>> STOR uce118.txt
<< 150 Opening BINARY data connection for uce118.txt
<< 226 transfer complete
PROG FtpCmd ftpOk ftpQuit
ERROR Non-Blocked : ptConnectionAborted An established connection was aborted by the software in your host machine, possibly due to a data transmission timeout or protocol error. PowerTcp will close the connection when this error is encountered.
STATE Closed State
>> QUIT
<< 221 Good-Bye
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 9, 2002 6:47 PM


Does it happen on other servers besides WSFTP?
Does it happen every time you try it?
Can you duplicate the problem with any of our sample apps?
If you can duplicate with our sample apps,please tell us how. If not, please write a very simple sample that specifically demonstrates the problem and send it to support@dart.com ( in other words, don't send the program you are working on, jusr isolate the part that's wrong ) 

Thanks,

Tony Priest
Dart Tech Support
User126

Posts: 4
Member Since: 04/09/02
posted April 10, 2002 12:52 PM

I've narrowed the problem down. The problem only occurs with WS_FTP server if there is an EventCmd configured. WS_FTP server allows you to execute command line functions upon completion of various FTP commands.

I've attempted having the command line function return different values to no avail. Is it possible that if the server's thread is blocking while executing the command line function that the FtpTool would mistakenly throw the ptConnectionAborted error?

The error does occur every time. The odd thing is that your VB5 FtpClient example did not throw an error. So I'm not sure if it's a server issue or if I should go ahead and send you a program of mine that causes the error.

Thanks,

Dan
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 10, 2002 1:26 PM


If it doesn't happen with the sample, then there is no need to look at your code. You just need to do whatever we do in the sample.

If you need further assistance, I encourage you to get priority support so that we can get on the phone with you and talk about this in detail.

Thanks,

Tony
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX