Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Perl Socket time out too small

by bloonix (Monk)
on Oct 24, 2007 at 12:39 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found