]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntp_iocompletionport.c:
authorDave Hart <hart@ntp.org>
Tue, 24 Mar 2009 15:04:27 +0000 (15:04 +0000)
committerDave Hart <hart@ntp.org>
Tue, 24 Mar 2009 15:04:27 +0000 (15:04 +0000)
  use one receive per socket to avoid Win2000 afd.sys bugcheck 0x76

bk: 49c8f67bBLYYU-ZzYkwKCmID6RsOTw

ports/winnt/ntpd/ntp_iocompletionport.c

index 7734a848b08b0ee3cabf4b62b801270386e0d994..4e49fa11f4f5c8e46c66857eb8af84ab968a8b6a 100644 (file)
@@ -651,7 +651,16 @@ io_completion_port_add_socket(SOCKET fd, struct interface *inter)
                }
        }
 
-#define WINDOWS_RECVS_PER_SOCKET 4
+       /*
+        * Windows 2000 bluescreens with bugcheck 0x76
+        * PROCESS_HAS_LOCKED_PAGES at ntpd process
+        * termination when using more than one pending
+        * receive per socket.  A runtime version test
+        * would allow using more on newer versions
+        * of Windows.
+        */
+
+#define WINDOWS_RECVS_PER_SOCKET 1
 
        for (n = 0; n < WINDOWS_RECVS_PER_SOCKET; n++) {