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 (5780 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]

Re: FTP DLX Loops on SIZE command when Getting a f

by wodDamir, Tuesday, January 27, 2009, 16:03 (5780 days ago) @ W Leader

Hi,

What version of wodFtpDLX are you using? Also, are you using ActiveX or .Net version?

Did you try our samples? Does the same issue occur with them too?

Regards,
Damba

Re: FTP DLX Loops on SIZE command when Getting a f

by W Leader, Tuesday, January 27, 2009, 17:33 (5780 days ago) @ wodDamir

I am using the component in Delphi using COM. I have successfully used the component to connect to and perform similar tasks on other servers. I am confident that the problem is not my use of the component.

It seems to be a combination of the component and the server. I can connect the component to other servers and download files. I can connect other clients (Filezilla) to the server that I am having a problem with.

The server claims to be running WS_FTP Server 6.1:
220 mom01.secure.maine.gov X2 WS_FTP Server 6.1(74375000)

Re: FTP DLX Loops on SIZE command when Getting a f

by woddrazen, Tuesday, January 27, 2009, 17:58 (5780 days ago) @ W Leader

Hi,


Can you please show us exact filename of file you are trying to download?


Drazen

Re: FTP DLX Loops on SIZE command when Getting a f

by W Leader, Tuesday, January 27, 2009, 18:13 (5780 days ago) @ woddrazen

The last thing that is called before the loop occurs is

FTPobj.GetFile('C:path10382027.01', '/users/TR10382/tr10382o/10382027.01');

'C:path10382027.01' and '/users/TR10382/tr10382o/10382027.01' are in variables. When I look at the files with a client like Filezilla, the remote file is there. The file does have a size of 732 bytes as the log shows. The local directory does exist.

Re: FTP DLX Loops on SIZE command when Getting a f

by woddrazen, Tuesday, January 27, 2009, 18:46 (5780 days ago) @ W Leader

Hi,


I have just tried to duplicate your problem in Delphi using WS_FTP 6.1 server but unfortunately didn't have luck.

Which version of wodFtpDLX you are using?
[code]ShowMessage(FTPobj.Version);[/code]
What happened when you set Passive Property to True?


Drazen

Re: FTP DLX Loops on SIZE command when Getting a f

by W Leader, Tuesday, January 27, 2009, 19:28 (5780 days ago) @ woddrazen

The version is reported as '2.6.3.275'. I have been using Pasv mode enabled. Data transfer seems to be working fine as I can list the files in a directory, and I can put files on the server, Its only the Get that fails.

Re: FTP DLX Loops on SIZE command when Getting a f

by woddrazen, Tuesday, January 27, 2009, 19:33 (5780 days ago) @ W Leader

Hi,


Can you please try with latest 2.8.7.443 version?

in order to get update for our product, please go to

http://www.weonlydo.com/index.asp?update=1

This is automated process. Make sure you use same email address that is registered with our system, one you used when you have purchased the product.

If problem persist. Is there any chance we can connect there and duplicate it? We will just connect few times duplicate it and immediately disconnect.

You can send your private information to techsupport@weonlydo.com


Drazen

Re: FTP DLX Loops on SIZE command when Getting a f

by W Leader, Thursday, January 29, 2009, 10:26 (5778 days ago) @ woddrazen

Updating has solved the problem.