Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
The stupid question is the question not asked
 
PerlMonks  

Re^2: Perl Net::FTP put() gives little help on errors

by amitsk (Initiate)
on Jan 07, 2010 at 10:05 UTC ( #816065=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Net::FTP put() gives little help on errors
in thread Perl Net::FTP put() gives little help on errors

Even when checking for errors like having if (! $ftp->put("build.zip")) and getting $ftp_message, the $ftp_message is still empty!

note, on the cmd window, I am seeing this
Net::FTP: Unexpected EOF on command channel at C:/Perl/lib/Net/FTP/dataconn.pm line 73
so question if why is $ftp->message empty?


Comment on Re^2: Perl Net::FTP put() gives little help on errors
Select or Download Code
Re^3: Perl Net::FTP put() gives little help on errors
by cdarke (Prior) on Jan 07, 2010 at 10:40 UTC
    A guess here, I found this comment in my version of C:/Perl/lib/Net/FTP/dataconn ($VERSION=0.11) in the abort function.
    # for some reason if we continously open RETR connections and not # read a single byte, then abort them after a while the server will # close our connection, this prevents the unexpected EOF on the # command channel -- GMB
    In this case the code aborts - it does not appear to update the error message.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://816065]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-04-21 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls