Matt Sergeant wrote:

I've checked a fork server ... number of child limits.

Matt.

Here's a way to do number of child limiting:


establish a variable visible to both your forking loop and your REAPER function,
as discussed in perldoc perlipc. When for returns non-zero, increment the
children-active variable, when reaper reaps, decrement it.


When the number of children is greater than the limit, sleep a second and
check the variable again instead of proceeding to accept another connection.


If your peers time out, they'll try again.

--
[EMAIL PROTECTED]
Include phrase "cat and buttered toast" to get through my filter



Reply via email to