in reply to Re^3: Timeout for timeout for an established connection
in thread Timeout for an established connection
If you willing to switch to AnyEvent, then AnyEvent::Handle allows you to set inactivity timeouts for reading and writing just as you want.
Also, calling delete on array values is deprecated. I'd suggest something like:
@noreply = grep { $_ && $_->ttl >= $check_time } @noreply;
|
|---|