]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Exit the child process if too many select errors
authorBill Stoddard <stoddard@apache.org>
Fri, 1 Oct 1999 17:18:28 +0000 (17:18 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 1 Oct 1999 17:18:28 +0000 (17:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83925 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index f2ae539a1ef4e78870cbb54ed77cd50315e95525..1ba5be391edeb4f3ce2c5a02da1ec1c561d0854e 100644 (file)
@@ -561,6 +561,7 @@ static void accept_and_queue_connections(void * dummy)
             ap_log_error(APLOG_MARK, APLOG_INFO|APLOG_WIN32ERROR, server_conf, "select failed with errno %d", h_errno);
             count_select_errors++;
             if (count_select_errors > MAX_SELECT_ERRORS) {
+                workers_may_exit = 1;      
                 ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_WIN32ERROR, server_conf,
                              "Too many errors in select loop. Child process exiting.");
                 break;
@@ -662,6 +663,7 @@ static PCOMP_CONTEXT winnt_get_connection(PCOMP_CONTEXT context)
             ap_log_error(APLOG_MARK, APLOG_INFO|APLOG_WIN32ERROR, server_conf, "select failed with errno %d", h_errno);
             count_select_errors++;
             if (count_select_errors > MAX_SELECT_ERRORS) {
+                workers_may_exit = 1;      
                 ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_WIN32ERROR, server_conf,
                              "Too many errors in select loop. Child process exiting.");
                 break;