From: Bill Stoddard Date: Fri, 1 Oct 1999 17:18:28 +0000 (+0000) Subject: Exit the child process if too many select errors X-Git-Tag: 1.3.10~313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe8b49c37947ee86689e4c1710c239cfe4527d59;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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;