Don'tr know anything about the HTTP::Daemon module,
but you have to use fork to get a new process for the communication with the client. Then the main process can accept mor connetions at the same time. Try:
use HTTP::Daemon;
my $d = HTTP::Daemon->new(LocalPort => 8080);
while (my $c = $d->accept) {
my $pid= fork;
if (! $pid) { ###It's the child process here
while (my $r = $c->get_request) {
print $r->method ."\n" . $r->url->path ."\n";
}
$c->close;
undef($c);
}
### And that's the end of the while loop from the father process
}
If you cannot fork on your system (i.e. Perl4Win 5.003) you have to use select and/or Multiplex to do the job. But the easiest way might be to fork your processes.
-----------------------------------
--the good, the bad and the physi--
-----------------------------------
|