From fe8b49c37947ee86689e4c1710c239cfe4527d59 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Fri, 1 Oct 1999 17:18:28 +0000 Subject: [PATCH] Exit the child process if too many select errors git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83925 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/mpm_winnt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index f2ae539a1ef..1ba5be391ed 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -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; -- 2.47.3