http://www.perlmonks.org?node_id=635883


in reply to HTTP::Daemon is killing me

Try caching the sigpipe signal.
I'm not sure if that's your problem, but it's worth a try.
Just redefine the signal handler:
SIG{PIPE} = sub { print "Lost Connection.\n"; };

hth, michael

Replies are listed 'Best First'.
Re^2: HTTP::Daemon is killing me
by Anonymous Monk on Aug 29, 2007 at 19:09 UTC
    Nice!!! This works beautifully (or at least it doesn't kill my app). Thank you so much, misc.
      It's also the normal way to handle broken pipes/sockets.
      I'm just wondering why there's so few information in the perl documentation..
      (perlvar and perlipc)