while (1) {
- for my $client ( $select->can_read(1) ) {
+ for my $client ( $select->can_read(0.01) ) {
if ( $client == $daemon ) {
$client = $daemon->accept;
$class->handler( $client->request, $client->response, $client );
}
- for my $client ( $select->can_write(1) ) {
+ for my $client ( $select->can_write(0.01) ) {
next unless $client->response;