Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^4: Timeout for timeout for an established connection

by zwon (Abbot)
on Dec 31, 2012 at 10:01 UTC ( #1011031=note: print w/replies, xml ) Need Help??

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;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011031]
[Corion]: I'm afraid that I'll turn off dk some day with all my bug reports or stuff that could be documented better ;-)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2016-12-09 09:20 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (150 votes). Check out past polls.