in reply to Net::FTP Timeout
To hopefully add a bit of clarity. I have the stein book in front me, which is a must read to say the least. The timeout is a timeout on the socket operation itself. Which means, it will attempt to create a socket to the host you specify BUT if a socket is not created in 120 seconds then the operation itself will time out and the operation will return an error.
Hopefully you are catching such an error e.g.
my $ftp = Net::FTP->new(HOST) or die "Can't connect: $@\n";
and if you want to you can get the client to retry it's connection based on that error. The other thing to think about is if you are getting these errors often you might want to grab a network sniffer to determine if your network links are being overloaded or if the server is getting overloaded with connections and is becoming slower to respond.
In either case you might want to set the clients to connect in groups by time to prevent a small scale denial of service attack on your server, I don't know how many clients you have, and from consuming all possible bandwith.
Hope this helps!,
Dave -- Saving the world one node at a time
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Net::FTP Timeout
by cknowlton (Acolyte) on Dec 16, 2002 at 22:50 UTC |