Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: HTTP::Daemon is killing me

by misc (Pilgrim)
on Aug 29, 2007 at 17:47 UTC ( #635883=note: print w/ replies, xml ) Need Help??


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


Comment on Re: HTTP::Daemon is killing me
Download Code
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)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://635883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2014-04-21 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls