Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Then after receiving the request, I call send_response to handle the HTTP request. Everything works fine.. EXCEPT if before I call send_response either the request (times out) or I kill the Http client (currently either wget or another HTTP::Daemon), my entire application dies. I've tried everything to save it. It literally just wants to die. The specific line it dies on lives in HTTP::Daemon in 'send_basic_header' when it tries to write to the socket handle:my $d = HTTP::Daemon->new( 'LocalPort' => $port, 'ReuseAddr' => 1 ); print STDERR "DataServer::new: <URL:", $d->url, ">\n"; my $sel = new IO::Select($d);
if anyone has any thoughts or interesting ideas, I'm open to all suggestions.. thanks, Michaelprint $self "Date: ", time2str(time), $CRLF;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP::Daemon is killing me
by misc (Friar) on Aug 29, 2007 at 17:47 UTC | |
by Anonymous Monk on Aug 29, 2007 at 19:09 UTC | |
by misc (Friar) on Aug 29, 2007 at 19:32 UTC |