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