Time outs

I am getting time outs. A sample log is attached. It appears to take my code down on every third pass of the upload code. I see in the logs that I get a timeout every thirty seconds or so. It is only on the third upload pass that the time out seems to bring the code down. Do I need to insert some type of idler? I saw on the boards that potentially NOOP should be passed but I do not understand that.

What the code does is walk through a group of directory folders. Identifies file(s) for upload; uploads them. It then changes directories twice, once for Remits and once for Reports. While in those directories I download any files I find and then delete them. During this whole process I write the connect log and a ftp transfer log for internal use.

Here is the log:

[20091007 13:42:56] SmartFTP FTP Library v1.5.26.0
[20091007 13:42:56] Resolving host name "ftp-direct.mccedi.com"
[20091007 13:42:56] Connecting to XXXXXXXXXXXX Port: 21
[20091007 13:42:56] Connected to ftp-direct.mccedi.com.
[20091007 13:42:56] 220 FTP Server
[20091007 13:42:56] AUTH TLS
[20091007 13:42:56] 234 AUTH command OK. Initializing SSL connection.
[20091007 13:42:56] Connected. Exchanging encryption keys...
[20091007 13:42:56] Session Cipher: 128 bit RC4
[20091007 13:42:56] TLS encrypted session established.
[20091007 13:42:56] Command channel protection set to Private.
[20091007 13:42:56] PBSZ 0
[20091007 13:42:56] 200 PBSZ command OK. Protection buffer size set to 0.
[20091007 13:42:56] USER XX
[20091007 13:42:56] 331 User name okay, need password.
[20091007 13:42:56] PASS XXXXX
[20091007 13:42:56] 230 User logged in, proceed.
[20091007 13:42:56] SYST
[20091007 13:42:56] 215 UNIX Type: L8
[20091007 13:42:56] Detected Server Type: UNIX
[20091007 13:42:56] RTT: 31.010 ms
[20091007 13:42:56] FEAT
[20091007 13:42:56] 211-Extensions supported
[20091007 13:42:56] UTF8
[20091007 13:42:56] OPTS MODE;MLST;UTF8
[20091007 13:42:56] CLNT
[20091007 13:42:56] CSID Name; Version;
[20091007 13:42:56] HOST domain
[20091007 13:42:56] SITE PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP
[20091007 13:42:56] AUTH TLS;SSL;TLS-C;TLS-P;
[20091007 13:42:56] PBSZ
[20091007 13:42:56] PROT
[20091007 13:42:56] CCC
[20091007 13:42:56] SSCN
[20091007 13:42:56] RMDA directoryname
[20091007 13:42:56] DSIZ
[20091007 13:42:56] AVBL
[20091007 13:42:56] MODE Z
[20091007 13:42:56] THMB BMP|JPEG|GIF|TIFF|PNG max_width max_height pathname
[20091007 13:42:56] REST STREAM
[20091007 13:42:56] SIZE
[20091007 13:42:56] MDTM
[20091007 13:42:56] MDTM YYYYMMDDHHMMSS[+-TZ];filename
[20091007 13:42:56] MFMT
[20091007 13:42:56] MFCT
[20091007 13:42:56] MFF Create;Modify;
[20091007 13:42:56] XCRC filename;start;end
[20091007 13:42:56] MLST Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt;Win32.dl
[20091007 13:42:56] 211 End (for details use "HELP commmand" where command is the command of interest)
[20091007 13:42:56] Detected Server Software: Serv-U 7.x
[20091007 13:42:56] OPTS UTF8 ON
[20091007 13:42:56] 200 OPTS UTF8 is set to ON.
[20091007 13:42:56] OPTS MLST Type;Size;Create;Modify;Perm;Win32.ea;Win32.dt;Win32.dl;
[20091007 13:42:56] 200 MLST OPTS Type;Size;Create;Modify;Perm;Win32.ea;Win32.dt;Win32.dl;
[20091007 13:42:56] PWD
[20091007 13:42:56] 257 "/" is current directory.
[20091007 13:42:56] CWD \
[20091007 13:42:56] 250 Directory changed to /
[20091007 13:42:56] PWD
[20091007 13:42:56] 257 "/" is current directory.
[20091007 13:42:56] CWD \PR022\Remits
[20091007 13:42:56] 250 Directory changed to /PR022/REMITS
[20091007 13:42:56] PWD
[20091007 13:42:56] 257 "/PR022/REMITS" is current directory.
[20091007 13:42:56] TYPE I
[20091007 13:42:57] 200 Type set to I.
[20091007 13:42:57] PASV
[20091007 13:42:57] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:42:57] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:42:57] MLSD
[20091007 13:42:57] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:42:57] 89 bytes transferred. (1.88 KB/s) (46 ms)
[20091007 13:42:57] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:42:57] CWD \
[20091007 13:42:57] 250 Directory changed to /
[20091007 13:42:57] PWD
[20091007 13:42:57] 257 "/" is current directory.
[20091007 13:42:57] CWD \PR022\Remits
[20091007 13:42:57] 250 Directory changed to /PR022/REMITS
[20091007 13:42:57] PWD
[20091007 13:42:57] 257 "/PR022/REMITS" is current directory.
[20091007 13:42:57] PASV
[20091007 13:42:58] 227 Entering Passive Mode (207,76,79,117,7,210)
[20091007 13:42:58] Opening data connection to 207.76.79.117 Port: 2002
[20091007 13:42:58] MLSD
[20091007 13:42:58] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:42:58] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:42:58] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:42:58] CWD \
[20091007 13:42:58] 250 Directory changed to /
[20091007 13:42:58] PWD
[20091007 13:42:58] 257 "/" is current directory.
[20091007 13:42:58] CWD \PR022\Reports
[20091007 13:42:58] 250 Directory changed to /PR022/REPORTS
[20091007 13:42:58] PWD
[20091007 13:42:58] 257 "/PR022/REPORTS" is current directory.
[20091007 13:42:58] PASV
[20091007 13:42:58] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:42:58] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:42:58] MLSD
[20091007 13:42:58] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:42:58] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:43:29] Transfer Timeout (30s). Closing data connection.
[20091007 13:43:29] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:43:29] CWD \
[20091007 13:43:29] 250 Directory changed to /
[20091007 13:43:29] PWD
[20091007 13:43:29] 257 "/" is current directory.
[20091007 13:43:29] CWD \PR022\Reports
[20091007 13:43:29] 250 Directory changed to /PR022/REPORTS
[20091007 13:43:29] PWD
[20091007 13:43:29] 257 "/PR022/REPORTS" is current directory.
[20091007 13:43:29] PASV
[20091007 13:43:29] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:43:29] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:43:29] MLSD
[20091007 13:43:29] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:43:29] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:43:29] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:43:29] CWD \
[20091007 13:43:29] 250 Directory changed to /
[20091007 13:43:29] PWD
[20091007 13:43:29] 257 "/" is current directory.
[20091007 13:43:29] CWD \
[20091007 13:43:29] 250 Directory changed to /
[20091007 13:43:29] PWD
[20091007 13:43:29] 257 "/" is current directory.
[20091007 13:43:29] CWD \NH030\Remits
[20091007 13:43:29] 250 Directory changed to /NH030/REMITS
[20091007 13:43:29] PWD
[20091007 13:43:29] 257 "/NH030/REMITS" is current directory.
[20091007 13:43:29] PASV
[20091007 13:43:29] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:43:29] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:43:29] MLSD
[20091007 13:43:29] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:43:30] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:44:00] Transfer Timeout (30s). Closing data connection.
[20091007 13:44:00] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:44:00] CWD \
[20091007 13:44:00] 250 Directory changed to /
[20091007 13:44:00] PWD
[20091007 13:44:00] 257 "/" is current directory.
[20091007 13:44:00] CWD \NH030\Remits
[20091007 13:44:00] 250 Directory changed to /NH030/REMITS
[20091007 13:44:00] PWD
[20091007 13:44:00] 257 "/NH030/REMITS" is current directory.
[20091007 13:44:00] PASV
[20091007 13:44:00] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:44:00] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:44:00] MLSD
[20091007 13:44:00] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:44:00] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:44:30] Transfer Timeout (30s). Closing data connection.
[20091007 13:44:30] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:44:30] CWD \
[20091007 13:44:30] 250 Directory changed to /
[20091007 13:44:30] PWD
[20091007 13:44:30] 257 "/" is current directory.
[20091007 13:44:30] CWD \NH030\Reports
[20091007 13:44:30] 250 Directory changed to /NH030/REPORTS
[20091007 13:44:30] PWD
[20091007 13:44:30] 257 "/NH030/REPORTS" is current directory.
[20091007 13:44:30] PASV
[20091007 13:44:30] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:44:30] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:44:30] MLSD
[20091007 13:44:30] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:44:30] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:44:31] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:44:31] CWD \
[20091007 13:44:31] 250 Directory changed to /
[20091007 13:44:31] PWD
[20091007 13:44:31] 257 "/" is current directory.
[20091007 13:44:31] CWD \NH030\Reports
[20091007 13:44:31] 250 Directory changed to /NH030/REPORTS
[20091007 13:44:31] PWD
[20091007 13:44:31] 257 "/NH030/REPORTS" is current directory.
[20091007 13:44:31] PASV
[20091007 13:44:31] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:44:31] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:44:31] MLSD
[20091007 13:44:31] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:44:34] 226 Transfer complete. 89 bytes transferred. 5.79 KB/sec.
[20091007 13:45:04] Transfer Timeout (30s). Closing data connection.
[20091007 13:45:04] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:45:04] CWD \
[20091007 13:45:04] 250 Directory changed to /
[20091007 13:45:04] PWD
[20091007 13:45:04] 257 "/" is current directory.
[20091007 13:45:04] CWD \
[20091007 13:45:04] 250 Directory changed to /
[20091007 13:45:04] PWD
[20091007 13:45:04] 257 "/" is current directory.
[20091007 13:45:04] CWD \PR023\Remits
[20091007 13:45:04] 250 Directory changed to /PR023/REMITS
[20091007 13:45:04] PWD
[20091007 13:45:04] 257 "/PR023/REMITS" is current directory.
[20091007 13:45:04] PASV
[20091007 13:45:04] 227 Entering Passive Mode (207,76,79,117,7,210)
[20091007 13:45:04] Opening data connection to 207.76.79.117 Port: 2002
[20091007 13:45:04] MLSD
[20091007 13:45:04] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:45:04] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:45:05] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:45:05] CWD \
[20091007 13:45:05] 250 Directory changed to /
[20091007 13:45:05] PWD
[20091007 13:45:05] 257 "/" is current directory.
[20091007 13:45:05] CWD \PR023\Remits
[20091007 13:45:05] 250 Directory changed to /PR023/REMITS
[20091007 13:45:05] PWD
[20091007 13:45:05] 257 "/PR023/REMITS" is current directory.
[20091007 13:45:05] PASV
[20091007 13:45:05] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:45:05] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:45:05] MLSD
[20091007 13:45:05] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:45:05] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:45:05] 226 Transfer complete. 89 bytes transferred. 1.38 KB/sec.
[20091007 13:45:05] CWD \
[20091007 13:45:05] 250 Directory changed to /
[20091007 13:45:05] PWD
[20091007 13:45:05] 257 "/" is current directory.
[20091007 13:45:05] CWD \PR023\Reports
[20091007 13:45:05] 250 Directory changed to /PR023/REPORTS
[20091007 13:45:05] PWD
[20091007 13:45:05] 257 "/PR023/REPORTS" is current directory.
[20091007 13:45:05] PASV
[20091007 13:45:05] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:45:05] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:45:05] MLSD
[20091007 13:45:05] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:45:05] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:45:35] Transfer Timeout (30s). Closing data connection.
[20091007 13:45:35] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:45:35] CWD \
[20091007 13:45:35] 250 Directory changed to /
[20091007 13:45:35] PWD
[20091007 13:45:35] 257 "/" is current directory.
[20091007 13:45:35] CWD \PR023\Reports
[20091007 13:45:35] 250 Directory changed to /PR023/REPORTS
[20091007 13:45:35] PWD
[20091007 13:45:35] 257 "/PR023/REPORTS" is current directory.
[20091007 13:45:35] PASV
[20091007 13:45:35] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:45:35] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:45:35] MLSD
[20091007 13:45:35] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:45:36] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:45:38] 89 bytes transferred. (28 bytes/s) (00:00:03)
[20091007 13:45:38] CWD \
[20091007 13:45:38] 250 Directory changed to /
[20091007 13:45:38] PWD
[20091007 13:45:39] 257 "/" is current directory.
[20091007 13:45:39] CWD \
[20091007 13:45:39] 250 Directory changed to /
[20091007 13:45:39] PWD
[20091007 13:45:39] 257 "/" is current directory.
[20091007 13:45:39] CWD \NH027\Remits
[20091007 13:45:39] 250 Directory changed to /NH027/REMITS
[20091007 13:45:39] PWD
[20091007 13:45:39] 257 "/NH027/REMITS" is current directory.
[20091007 13:45:39] PASV
[20091007 13:45:39] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:45:39] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:45:39] MLSD
[20091007 13:45:39] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:45:39] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:45:40] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:45:40] CWD \
[20091007 13:45:40] 250 Directory changed to /
[20091007 13:45:40] PWD
[20091007 13:45:40] 257 "/" is current directory.
[20091007 13:45:40] CWD \NH027\Remits
[20091007 13:45:40] 250 Directory changed to /NH027/REMITS
[20091007 13:45:40] PWD
[20091007 13:45:40] 257 "/NH027/REMITS" is current directory.
[20091007 13:45:40] PASV
[20091007 13:45:40] 227 Entering Passive Mode (207,76,79,117,7,210)
[20091007 13:45:40] Opening data connection to 207.76.79.117 Port: 2002
[20091007 13:45:40] MLSD
[20091007 13:45:40] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:45:40] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:45:40] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:45:40] CWD \
[20091007 13:45:40] 250 Directory changed to /
[20091007 13:45:40] PWD
[20091007 13:45:40] 257 "/" is current directory.
[20091007 13:45:40] CWD \NH027\Reports
[20091007 13:45:40] 250 Directory changed to /NH027/REPORTS
[20091007 13:45:40] PWD
[20091007 13:45:40] 257 "/NH027/REPORTS" is current directory.
[20091007 13:45:40] PASV
[20091007 13:45:40] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:45:40] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:45:40] MLSD
[20091007 13:45:40] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:45:40] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:46:10] Transfer Timeout (30s). Closing data connection.
[20091007 13:46:10] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:46:10] CWD \
[20091007 13:46:10] 250 Directory changed to /
[20091007 13:46:10] PWD
[20091007 13:46:10] 257 "/" is current directory.
[20091007 13:46:10] CWD \NH027\Reports
[20091007 13:46:10] 250 Directory changed to /NH027/REPORTS
[20091007 13:46:10] PWD
[20091007 13:46:10] 257 "/NH027/REPORTS" is current directory.
[20091007 13:46:10] PASV
[20091007 13:46:10] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:46:10] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:46:10] MLSD
[20091007 13:46:10] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:46:10] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:46:11] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:46:11] CWD \
[20091007 13:46:11] 250 Directory changed to /
[20091007 13:46:11] PWD
[20091007 13:46:11] 257 "/" is current directory.
[20091007 13:46:11] CWD \
[20091007 13:46:11] 250 Directory changed to /
[20091007 13:46:11] PWD
[20091007 13:46:11] 257 "/" is current directory.
[20091007 13:46:11] CWD \NH024\Remits
[20091007 13:46:11] 250 Directory changed to /NH024/REMITS
[20091007 13:46:11] PWD
[20091007 13:46:11] 257 "/NH024/REMITS" is current directory.
[20091007 13:46:11] PASV
[20091007 13:46:11] 227 Entering Passive Mode (207,76,79,117,7,210)
[20091007 13:46:11] Opening data connection to 207.76.79.117 Port: 2002
[20091007 13:46:11] MLSD
[20091007 13:46:11] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:46:11] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:46:14] 89 bytes transferred. (29 bytes/s) (00:00:02)
[20091007 13:46:14] CWD \
[20091007 13:46:14] 250 Directory changed to /
[20091007 13:46:14] PWD
[20091007 13:46:14] 257 "/" is current directory.
[20091007 13:46:14] CWD \NH024\Remits
[20091007 13:46:14] 250 Directory changed to /NH024/REMITS
[20091007 13:46:14] PWD
[20091007 13:46:14] 257 "/NH024/REMITS" is current directory.
[20091007 13:46:14] PASV
[20091007 13:46:14] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:46:14] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:46:14] MLSD
[20091007 13:46:14] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:46:14] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:46:44] Transfer Timeout (30s). Closing data connection.
[20091007 13:46:44] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:46:44] CWD \
[20091007 13:46:44] 250 Directory changed to /
[20091007 13:46:44] PWD
[20091007 13:46:44] 257 "/" is current directory.
[20091007 13:46:44] CWD \NH024\Reports
[20091007 13:46:44] 250 Directory changed to /NH024/REPORTS
[20091007 13:46:44] PWD
[20091007 13:46:44] 257 "/NH024/REPORTS" is current directory.
[20091007 13:46:44] PASV
[20091007 13:46:44] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:46:44] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:46:44] MLSD
[20091007 13:46:44] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:46:44] 89 bytes transferred. (5.79 KB/s) (15 ms)
[20091007 13:46:45] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:46:45] CWD \
[20091007 13:46:45] 250 Directory changed to /
[20091007 13:46:45] PWD
[20091007 13:46:45] 257 "/" is current directory.
[20091007 13:46:45] CWD \NH024\Reports
[20091007 13:46:45] 250 Directory changed to /NH024/REPORTS
[20091007 13:46:45] PWD
[20091007 13:46:45] 257 "/NH024/REPORTS" is current directory.
[20091007 13:46:45] PASV
[20091007 13:46:45] 227 Entering Passive Mode (207,76,79,117,7,210)
[20091007 13:46:45] Opening data connection to 207.76.79.117 Port: 2002
[20091007 13:46:45] MLSD
[20091007 13:46:45] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:46:48] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:46:48] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:46:48] CWD \
[20091007 13:46:48] 250 Directory changed to /
[20091007 13:46:48] PWD
[20091007 13:46:48] 257 "/" is current directory.
[20091007 13:46:48] CWD \
[20091007 13:46:48] 250 Directory changed to /
[20091007 13:46:48] PWD
[20091007 13:46:48] 257 "/" is current directory.
[20091007 13:46:48] CWD \NH036\Remits
[20091007 13:46:48] 250 Directory changed to /NH036/REMITS
[20091007 13:46:48] PWD
[20091007 13:46:48] 257 "/NH036/REMITS" is current directory.
[20091007 13:46:48] PASV
[20091007 13:46:48] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:46:48] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:46:48] MLSD
[20091007 13:46:48] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:46:48] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:47:18] Transfer Timeout (30s). Closing data connection.
[20091007 13:47:18] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:47:18] CWD \
[20091007 13:47:18] 250 Directory changed to /
[20091007 13:47:18] PWD
[20091007 13:47:18] 257 "/" is current directory.
[20091007 13:47:18] CWD \NH036\Remits
[20091007 13:47:18] 250 Directory changed to /NH036/REMITS
[20091007 13:47:18] PWD
[20091007 13:47:18] 257 "/NH036/REMITS" is current directory.
[20091007 13:47:18] PASV
[20091007 13:47:18] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:47:18] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:47:18] MLSD
[20091007 13:47:18] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:47:18] 89 bytes transferred. (1.88 KB/s) (46 ms)
[20091007 13:47:19] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:47:19] CWD \
[20091007 13:47:19] 250 Directory changed to /
[20091007 13:47:19] PWD
[20091007 13:47:19] 257 "/" is current directory.
[20091007 13:47:19] CWD \NH036\Reports
[20091007 13:47:19] 250 Directory changed to /NH036/REPORTS
[20091007 13:47:19] PWD
[20091007 13:47:19] 257 "/NH036/REPORTS" is current directory.
[20091007 13:47:19] PASV
[20091007 13:47:19] 227 Entering Passive Mode (207,76,79,117,7,210)
[20091007 13:47:19] Opening data connection to 207.76.79.117 Port: 2002
[20091007 13:47:19] MLSD
[20091007 13:47:19] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:47:19] 89 bytes transferred. (1.88 KB/s) (46 ms)
[20091007 13:47:19] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:47:19] CWD \
[20091007 13:47:19] 250 Directory changed to /
[20091007 13:47:19] PWD
[20091007 13:47:19] 257 "/" is current directory.
[20091007 13:47:19] CWD \NH036\Reports
[20091007 13:47:19] 250 Directory changed to /NH036/REPORTS
[20091007 13:47:19] PWD
[20091007 13:47:19] 257 "/NH036/REPORTS" is current directory.
[20091007 13:47:19] PASV
[20091007 13:47:19] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:47:19] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:47:19] MLSD
[20091007 13:47:19] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:47:20] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:47:50] Transfer Timeout (30s). Closing data connection.
[20091007 13:47:50] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:47:50] CWD \
[20091007 13:47:50] 250 Directory changed to /
[20091007 13:47:50] PWD
[20091007 13:47:50] 257 "/" is current directory.
[20091007 13:47:50] CWD \
[20091007 13:47:50] 250 Directory changed to /
[20091007 13:47:50] PWD
[20091007 13:47:50] 257 "/" is current directory.
[20091007 13:47:50] CWD \NH035\Remits
[20091007 13:47:50] 250 Directory changed to /NH035/REMITS
[20091007 13:47:50] PWD
[20091007 13:47:50] 257 "/NH035/REMITS" is current directory.
[20091007 13:47:50] PASV
[20091007 13:47:50] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:47:50] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:47:50] MLSD
[20091007 13:47:50] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:47:50] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:47:51] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:47:51] CWD \
[20091007 13:47:51] 250 Directory changed to /
[20091007 13:47:51] PWD
[20091007 13:47:51] 257 "/" is current directory.
[20091007 13:47:51] CWD \NH035\Remits
[20091007 13:47:51] 250 Directory changed to /NH035/REMITS
[20091007 13:47:51] PWD
[20091007 13:47:51] 257 "/NH035/REMITS" is current directory.
[20091007 13:47:51] PASV
[20091007 13:47:51] 227 Entering Passive Mode (207,76,79,117,7,210)
[20091007 13:47:51] Opening data connection to 207.76.79.117 Port: 2002
[20091007 13:47:51] MLSD
[20091007 13:47:51] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:47:54] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:47:54] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:47:54] CWD \
[20091007 13:47:54] 250 Directory changed to /
[20091007 13:47:54] PWD
[20091007 13:47:54] 257 "/" is current directory.
[20091007 13:47:54] CWD \NH035\Reports
[20091007 13:47:54] 250 Directory changed to /NH035/REPORTS
[20091007 13:47:54] PWD
[20091007 13:47:54] 257 "/NH035/REPORTS" is current directory.
[20091007 13:47:54] PASV
[20091007 13:47:54] 227 Entering Passive Mode (207,76,79,117,7,208)
[20091007 13:47:54] Opening data connection to 207.76.79.117 Port: 2000
[20091007 13:47:54] MLSD
[20091007 13:47:54] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:47:54] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:48:24] Transfer Timeout (30s). Closing data connection.
[20091007 13:48:24] 0 bytes transferred. (0 bytes/s) (00:00:30)
[20091007 13:48:24] CWD \
[20091007 13:48:24] 250 Directory changed to /
[20091007 13:48:24] PWD
[20091007 13:48:24] 257 "/" is current directory.
[20091007 13:48:24] CWD \NH035\Reports
[20091007 13:48:24] 250 Directory changed to /NH035/REPORTS
[20091007 13:48:24] PWD
[20091007 13:48:25] 257 "/NH035/REPORTS" is current directory.
[20091007 13:48:25] PASV
[20091007 13:48:25] 227 Entering Passive Mode (207,76,79,117,7,209)
[20091007 13:48:25] Opening data connection to 207.76.79.117 Port: 2001
[20091007 13:48:25] MLSD
[20091007 13:48:25] 150 Opening BINARY mode data connection for MLSD.
[20091007 13:48:25] 89 bytes transferred. (2.80 KB/s) (31 ms)
[20091007 13:48:25] 226 Transfer complete. 89 bytes transferred. 0.09 KB/sec.
[20091007 13:48:25] CWD \
[20091007 13:48:25] 250 Directory changed to /
[20091007 13:48:25] PWD
[20091007 13:48:25] 257 "/" is current directory.
[20091007 13:48:25] CWD NH041\Uploads
[20091007 13:48:25] 250 Directory changed to /NH041/UPLOADS
[20091007 13:48:25] PWD
[20091007 13:48:25] 257 "/NH041/UPLOADS" is current directory.
[20091007 13:48:25] PASV
[20091007 13:48:25] 227 Entering Passive Mode (207,76,79,117,7,210)
[20091007 13:48:25] Opening data connection to 207.76.79.117 Port: 2002
[20091007 13:48:25] STOR 19585C.INA
[20091007 13:48:25] 150 Opening BINARY mode data connection for 19585C.INA.
[20091007 13:49:07] 49141 bytes transferred. (N/A/s) (0 ms)
[20091007 13:49:07] Timeout (30s)
[20091007 13:48:07] 3

At this point the file has been uploaded but my script fails...

Thanks in advanced

Support request handled through email.