MCPcopy Create free account
hub / github.com/apache/httpd / check_infinite_requests

Function check_infinite_requests

server/mpm/worker/worker.c:499–507  ·  view source on GitHub ↗

requests_this_child has gone to zero or below. See if the admin coded "MaxConnectionsPerChild 0", and keep going in that case. Doing it this way simplifies the hot path in worker_thread */

Source from the content-addressed store, hash-verified

497 "MaxConnectionsPerChild 0", and keep going in that case. Doing it this way
498 simplifies the hot path in worker_thread */
499static void check_infinite_requests(void)
500{
501 if (ap_max_requests_per_child) {
502 signal_threads(ST_GRACEFUL);
503 }
504 else {
505 requests_this_child = INT_MAX; /* keep going */
506 }
507}
508
509static void unblock_signal(int sig)
510{

Callers 1

listener_threadFunction · 0.70

Calls 1

signal_threadsFunction · 0.70

Tested by

no test coverage detected