fredex42 has asked for the wisdom of the Perl Monks concerning the following question:
having first got $dataconn from a $ftp->stor().do { $ftp->restart($transferred); ++$attempts; if($attempts>2){ mesg('*',"Having trouble writing to server, on attempt $at +tempts...",$evqueue); } $written=$dataconn->write($buffer,$to_transfer,$config->{'time +out'}); if($attempts>$soft_retries){ mesg('*',"Connection appears to be dead. Attempting to re +-start...",$evqueue); $ftp=undef; $ftp=ftp_transfer::connect($config,$evqueue) while(not def +ined $ftp); $ftp->binary; $ftp->restart($transferred); } } while($written<$to_transfer); $transferred+=$written;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Auto-resuming with Net::FTP
by afoken (Chancellor) on Aug 16, 2010 at 11:34 UTC | |
by fredex42 (Initiate) on Aug 16, 2010 at 15:00 UTC | |
|
Re: Auto-resuming with Net::FTP
by zentara (Cardinal) on Aug 16, 2010 at 15:56 UTC | |
|
Re: Auto-resuming with Net::FTP
by Khen1950fx (Canon) on Aug 16, 2010 at 19:23 UTC |