]> granicus.if.org Git - apache/commitdiff
Fix for Sebastian's observation of my fat fingers.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 14 Oct 2002 14:54:45 +0000 (14:54 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 14 Oct 2002 14:54:45 +0000 (14:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97203 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/child.c

index 3e6c6befaba41fcaa6f36329f8bf3681e9b3e26a..a32997e8e24baf8ecd10620da76b893a86ad8898 100644 (file)
@@ -512,8 +512,8 @@ static void winnt_accept(void *lr_)
                       &BytesRead,
                       &context->Overlapped)) {
             rv = apr_get_netos_error();
-            if (rv == APR_FROM_OS_ERROR(WSAEINVAL) ||
-                rv == APR_FROM_OS_ERROR(WSAENOTSOCK)) {
+            if ((rv == APR_FROM_OS_ERROR(WSAEINVAL)) ||
+                (rv == APR_FROM_OS_ERROR(WSAENOTSOCK))) {
                 /* Hack alert. Occasionally, TransmitFile will not recycle the 
                  * accept socket (usually when the client disconnects early). 
                  * Get a new socket and try the call again.
@@ -525,8 +525,8 @@ static void winnt_accept(void *lr_)
                        "disconnect. Reallocate the accept socket and try again.");
                 continue;
             }
-            else if ((rv != APR_FROM_OS_ERROR(ERROR_IO_PENDING)
-                     (rv != APR_FROM_OS_ERROR(WSA_IO_PENDING)) {
+            else if ((rv != APR_FROM_OS_ERROR(ERROR_IO_PENDING)) &&
+                     (rv != APR_FROM_OS_ERROR(WSA_IO_PENDING))) {
                 ap_log_error(APLOG_MARK,APLOG_ERR, rv, ap_server_conf,
                              "winnt_accept: AcceptEx failed. Attempting to recover.");
                 closesocket(context->accept_socket);