manoj 99/03/17 15:05:47
Modified: src/main http_main.c
Log:
Small bugfix. A child process used to exit after MaxRequestsPerChild - 1
requests. This patch puts the increment of requests_this_child after the
ap_max_requests_per_child check so the server will process that one
last request before dying.
Revision Changes Path
1.427 +1 -1 apache-1.3/src/main/http_main.c
Index: http_main.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
retrieving revision 1.426
retrieving revision 1.427
diff -u -u -r1.426 -r1.427
--- http_main.c 1999/03/10 11:06:10 1.426
+++ http_main.c 1999/03/17 23:05:43 1.427
@@ -3621,7 +3621,7 @@
#ifndef WIN32
if ((ap_max_requests_per_child > 0
- && ++requests_this_child >= ap_max_requests_per_child)) {
+ && requests_this_child++ >= ap_max_requests_per_child)) {
clean_child_exit(0);
}
#else