H
Hostile17
I'm using Net::FTP to upload a file.
The server to which I'm uploading requires that I do so in Passive
mode.
I start Net::FTP with "Passive => 1", but the upload takes just over
two minutes, for a tiny file.
Except, it probably isn't really taking two minutes, it's trying to
transfer _non_ passively, then switching modes.
The debug info looks like this:
230 User foobar logged in.
CWD /path/to/files/
250 CWD command successful.
ALLO 5
Timeout at ftpscript.pl line 23 ### SEE BELOW
PASV
227 Entering passive mode (123,4,56,78,910,123)
STOR foobar.txt
125 Data connection already open; Transfer starting.
226 Transfer complete.
Line 23 is where the script says to $ftp->put() my file.
So why, when I've told it to use Passive, is it waiting for a timeout
and only _then_ issuing the PASV message?
TIA
The server to which I'm uploading requires that I do so in Passive
mode.
I start Net::FTP with "Passive => 1", but the upload takes just over
two minutes, for a tiny file.
Except, it probably isn't really taking two minutes, it's trying to
transfer _non_ passively, then switching modes.
The debug info looks like this:
230 User foobar logged in.
CWD /path/to/files/
250 CWD command successful.
ALLO 5
Timeout at ftpscript.pl line 23 ### SEE BELOW
PASV
227 Entering passive mode (123,4,56,78,910,123)
STOR foobar.txt
125 Data connection already open; Transfer starting.
226 Transfer complete.
Line 23 is where the script says to $ftp->put() my file.
So why, when I've told it to use Passive, is it waiting for a timeout
and only _then_ issuing the PASV message?
TIA