Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Perl Socket time out too small

by bloonix (Monk)
on Oct 24, 2007 at 12:39 UTC ( #646885=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl Socket time out too small
in thread Perl Socket time out too small

It's possible to call timeout() on $sock as well.
$sock->timeout(60);
If you want to know whether it runs on a timeout or not:
while ( 1 ) { while (my $r = $sock->accept) { # process } if ($! == &Errno::ETIMEDOUT) { warn "Server runs on a timeout" } }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2022-01-28 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (72 votes). Check out past polls.

    Notices?