httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@hyperreal.org>
Subject PR #2099
Date Wed, 20 May 1998 12:02:18 GMT

How about this patch (to get Win32 to not commit suicide when
it hits the MaxRequestsPerChild number)?

http://bugs.apache.org/index/full/2099

Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_main.c,v
retrieving revision 1.353
diff -u -r1.353 http_main.c
--- http_main.c	1998/05/14 21:58:26	1.353
+++ http_main.c	1998/05/20 12:00:16
@@ -3393,10 +3393,14 @@
 	    clean_child_exit(0);
 	}
 
+#ifndef WIN32
 	if ((ap_max_requests_per_child > 0
 	     && ++requests_this_child >= ap_max_requests_per_child)) {
 	    clean_child_exit(0);
 	}
+#else
+	++requests_this_child;
+#endif
 
 	(void) ap_update_child_status(my_child_num, SERVER_READY, (request_rec *) NULL);
 


Mime
View raw message