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

bk: 49c8f8dc9Iy3ZkOklCm7MOS4oEPZMQ

ports/winnt/ntpd/ntp_iocompletionport.c

index 7c7ec3b6787afcd6dbe1fd24e7f16e0b9d4c54a2..7aed7f2b7f84dd37e43cd42fdf21f91663d96861 100644 (file)
@@ -645,7 +645,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++) {