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;
In reply to Re^4: Timeout for timeout for an established connection
by zwon
in thread Timeout for an established connection
by 0day
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |