From d2c01066728d86b657c0dea1abecaa2a519a12ba Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Fri, 9 Jan 2004 20:41:06 +0000 Subject: [PATCH] Win32: Simplify. Issue message if the Win32DisableAcceptEx directive toggles the default setting of use_acceptex. Tnx Jeff. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102246 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/mpm_winnt.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index cff1d677d8..4a64dfa5a0 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -225,17 +225,11 @@ static const char *set_disable_acceptex(cmd_parms *cmd, void *dummy, char *arg) if (err != NULL) { return err; } - if (osver.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) { - ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, - "Ignoring Win32EnableAcceptEx configuration directive. " - "The directive is not valid on Windows 9x"); - return NULL; + if (use_acceptex) { + use_acceptex = 0; + ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, + "Disabled use of AcceptEx() WinSock2 API"); } - - use_acceptex = 0; - - ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, - "Disabled use AcceptEx WinSock2 API"); return NULL; } -- 2.50.1