my $previous_alarm = alarm($timeout);
while ( my $inputbuf = read_request() ) {
if ( !defined $inputbuf ) {
return; #EOF
next unless defined $inputbuf;
}
alarm($timeout);
unless ($inputbuf) {
-