For some reason the FTP server I'm connecting to seems to close the session for no specific reason - here shown with a 426 error, that currently my code is ignoring and hence I then get a later problem 530.

From my FTPClient logs

15:36:17:405 local - C:\ProgramData\Navigator Systems\NX SQL Server\Downloaded Updates\HireTrack NX\3.0.1.169\HireTrack NX.inf 15:36:17:405 host - /pub/HireTRACK NX/autoupdates/HireTrack NX/3.0.1.169/HireTrack NX.inf
15:36:17:405 changing to binary mode
15:36:17:405 Request MlsdAsync Done.
15:36:17:405 StatusCode = 0
15:36:17:405 LastResponse was : ''
15:36:17:405 Error = 426 ()
15:36:17:701 Session Connected, error = 0
15:36:17:701 Request MlsdAsync Done.
15:36:17:701 StatusCode = 220
15:36:17:701 LastResponse was : '220 ProFTPD 1.3.3a Server (My FTP server) [::ffff:205.196.214.163]'
15:36:17:701 No error
15:36:17:701 C:\ProgramData\Navigator Systems\NX SQL Server\Downloaded Updates\HireTrack NX\3.0.1.169\HireTrack NX.inf
15:36:17:701 starting download
15:36:17:859 Request GetAsync Done.
15:36:17:859 StatusCode = 530
15:36:17:859 LastResponse was : '530 Please login with USER and PASS'

I notice that if I use wget, the same happens, but that automatically reconnects and carries on as if nothing had gone wrong.

From the wget logs

==> CWD /pub/HireTRACK NX/autoupdates/HireTrack NX/3.0.1.169 ... done.
==> PASV ... done.    ==> LIST ...
Error in server response, closing control connection.
Retrying.

--2013-11-06 11:41:21-- ftp://ftp.navigator-support.com/pub/HireTRACK%20NX/auto
updates/HireTrack%20NX/3.0.1.169/*
(try: 2) => `ftp.navigator-support.com/pub/HireTRACK NX/autoupdates/HireTrack
NX/3.0.1.169/.listing'
Connecting to ftp.navigator-support.com|205.196.214.163|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/HireTRACK NX/autoupdates/HireTrack NX/3.0.1.1
69 ... done.
==> PASV ... done.    ==> LIST ... done.

My question is whether FTPClient component has this reconnection and retry option already built in (and I just need to activate it by setting a property) or whether I need to code it up myself ?

Don't want to unnecessarily reinvent the wheel.

regards

David
--
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