If you want to know whether it runs on a timeout or not:$sock->timeout(60);
while ( 1 ) { while (my $r = $sock->accept) { # process } if ($! == &Errno::ETIMEDOUT) { warn "Server runs on a timeout" } }
In reply to Re^4: Perl Socket time out too small
by bloonix
in thread Perl Socket time out too small
by h3x
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |