FTP DLX Loops on SIZE command when Getting a file - WeOnlyDo Discussion board

FTP DLX Loops on SIZE command when Getting a file (wodSFTP / wodSFTP.NET / wodSFTPdll)

by W Leader, Tuesday, January 27, 2009, 16:00 (5561 days ago)

I'm working on a program that connects to a server and automatically downloads some files. I can connect, put files, and list directory contents, but when I get a file the program appears to hang.

I turned on the debug file for the component and examined its contents, and found that eventually the component attempts to get the size of the file I have instructed it to download, and it gets stuck in a loop, repeatedly sending the SIZE command to the server.

The rest of the log is available if it will help.

[code]
*** Sending 8 bytes: TYPE I

xxx SSLSocket::FDReceive
FdReceive for SSL start, err = 0
FdReceive for SSL - Control Socket
FdReceive for SSL - state = 13
ReadServerResponse::start
ReadServerResponse::read 33 bytes: 200 Transfer mode set to BINARY

GetServerResponse returned 200
Command: TYPE I 200 Transfer mode set to BINARY
FireStateChange to 7
*** Sending 41 bytes: CWD /users/TR10382/tr10382o/10382027.01

xxx SSLSocket::FDReceive
FdReceive for SSL start, err = 0
FdReceive for SSL - Control Socket
FdReceive for SSL - state = 7
ReadServerResponse::start
ReadServerResponse::read 58 bytes: 550 Folder /users/TR10382/tr10382o/10382027.01 not found

GetServerResponse returned 550
Command: CWD /users/TR10382/tr10382o/10382027.01 550 Folder /users/TR10382/tr10382o/10382027.01 not found
*** Sending 30 bytes: CWD /users/TR10382/tr10382o/

xxx SSLSocket::FDReceive
FdReceive for SSL start, err = 0
FdReceive for SSL - Control Socket
FdReceive for SSL - state = 7
ReadServerResponse::start
ReadServerResponse::read 25 bytes: 250 Command CWD succeed

GetServerResponse returned 250
Command: CWD /users/TR10382/tr10382o/ 250 Command CWD succeed
FireStateChange to 15
FireStateChange to 8
*** Sending 42 bytes: SIZE /users/TR10382/tr10382o/10382027.01

xxx SSLSocket::FDReceive
FdReceive for SSL start, err = 0
FdReceive for SSL - Control Socket
FdReceive for SSL - state = 8
ReadServerResponse::start
ReadServerResponse::read 9 bytes: 200 732

GetServerResponse returned 200
Command: SIZE /users/TR10382/tr10382o/10382027.01 200 732
*** Sending 42 bytes: SIZE /users/TR10382/tr10382o/10382027.01
[/code]


Complete thread: