Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Timeout for timeout for an established connection

by zwon (Monsignor)
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;


Comment on Re^4: Timeout for timeout for an established connection
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011031]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-09-02 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (21 votes), past polls