--- lib/PXElator/httpd.pm 2009/08/02 12:09:02 115 +++ lib/PXElator/httpd.pm 2009/08/03 08:52:32 118 @@ -17,7 +17,6 @@ use File::Slurp; #use JSON; use IO::Socket::INET; -use Module::Refresh; our $pids; $pids = { httpd => $$ } unless defined $pids; # keep pids on refresh @@ -257,14 +256,12 @@ start_stop 'screen'; start_stop 'kvm'; - while (my $client = $server->accept()) { - $client->autoflush(1); + while (1) { + my $client = $server->accept() || next; # ALARM trickle us my $request = <$client>; warn "request $request\n" if $debug; - Module::Refresh->refresh; - if ($request =~ m{^GET (/.*) HTTP/1.[01]}) { my $path = $1; my $param;