https://bz.apache.org/bugzilla/show_bug.cgi?id=65803
Bug ID: 65803
Summary: Apache hangs after the only one Server gets terminated
Product: Apache httpd-2
Version: 2.4.52
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mpm_event
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Overview:
Server hangs after some time.
Steps to reproduce:
MPM configuration:
<IfModule event.c>
MaxRequestWorkers 32
ServerLimit 1
ThreadLimit 32
ThreadsPerChild 32
MinSpareThreads 8
MaxSpareThreads 40
MaxConnectionsPerChild 10000000
</IfModule>
Additional Information
I dug a little and here's what i've found: There's a function called
startup_children in event.c and it can skip creation of children (make_child
call) because of (ap_scoreboard_image->parent[i].pid != 0).
When using this function in server_main_loop function the
remaining_children_to_start variable is set to zero. So if there were no child
creation and remaining_children_to_start is set to zero, no more child ever
created. Server hung.
So my proposal probably to modify startup_children function to return actual
number of remaining children. Not just set it to zero unconditionally.
I am not apache dev. Please correct me.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]