Try something more along the lines of:$sock->send($request) or die "send: $!";
Maybe throw a counter in there so it only sleeps/retries a maximum number of times.unless ($_=$sock->send($request)) { die "send: $!" unless $! =~ /unreachable/; # Or whatever sleep 1; }
In reply to Re: don't die, retry
by clintp
in thread don't die, retry
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |