Hi all,
I'm having a problem with FTP, where the remote site is only partially available and
the connect/login/put/get doesn't report an error and doesn't time out.
This leads to the situation where a hanging run on a Friday evening locks up the whole
process until the following Monday, when it can be manually cleared; however, in the
meantime, the transactions from Friday, Saturday & Sunday have all been blocked and we
haven't met our SLA.
What I should like to be able to do is to put a timeout value on the
connect/login/put/get operation, to force it to timeout after (say) 10 minutes - is
there a simple way of doing this ?
These are the relevant calls that are being used :
use Net::FTP;
$ftpClient = Net::FTP->new($FTP_server);
$return_value = $ftpClient->login($FTP_username, $FTP_password);
$return_value = $ftpClient->put($fn);
$return_value = $ftpClient->get($fn, $uniqueLocalname);
Any suggestions would be much appreciated.
Geoff.
____________________________________________
Geoff Evans
Technical Consultant
Talis Information Ltd.
Birmingham Research Park
Vincent Drive
Birmingham Phone +44 (0)121 471 1179
B15 2SQ Fax +44 (0)121 472 0298
United Kingdom E-Mail [EMAIL PROTECTED]
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
Any views or personal opinions expressed within this email may not be those of Talis
Information Ltd.
The content of this email message and any files that may be attached are confidential,
and for the usage of the intended recipient only. If you are not the intended
recipient, then please return this message to the sender and delete it. Any use of
this e-mail by an unauthorised recipient is prohibited.