in reply to print $socket $message
I've found that the Timeout parameter, when set in the new() method, has no effect if the remote device is not responding.. in which case an alarm() within an eval { } does actually help.
As for attempting to send to a down-host, I have little experience with this, other than using IO::Select and syswrite() to make sending non-blocking, and implementing application-level timeouts to protect against a host going down in the middle of a process.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: print $socket $message
by serg_remote (Initiate) on Nov 23, 2005 at 17:24 UTC |