Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: IO::Socket Not responding after period of time and traffic!

by rowdog (Curate)
on Aug 16, 2010 at 19:26 UTC ( #855344=note: print w/ replies, xml ) Need Help??


in reply to Re^2: IO::Socket Not responding after period of time and traffic!
in thread IO::Socket Not responding after period of time and traffic!

Well, okay, that's a good point but I'm not crazy enough to want to deal with fork and Windows (use threads;)

My point is that most UNIX like OSes treat a return of zero from waitpid with the WNOHANG option as a special case that says "there are no stopped, continued or exited children". If you idle loop waiting for your children to exit, you won't be getting out of the signal handler often enough to handle new connections. Just testing for -1 isn't enough.


Comment on Re^3: IO::Socket Not responding after period of time and traffic!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-12-25 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls