From: Dave Hart Date: Tue, 24 Mar 2009 15:14:36 +0000 (+0000) Subject: ntp_iocompletionport.c: X-Git-Tag: NTP_4_2_4P7_RC1~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65a164852cc728809a521ccec3ac23514abc6254;p=thirdparty%2Fntp.git ntp_iocompletionport.c: use one receive per socket to avoid Win2000 afd.sys bugcheck 0x76 bk: 49c8f8dc9Iy3ZkOklCm7MOS4oEPZMQ --- diff --git a/ports/winnt/ntpd/ntp_iocompletionport.c b/ports/winnt/ntpd/ntp_iocompletionport.c index 7c7ec3b67..7aed7f2b7 100644 --- a/ports/winnt/ntpd/ntp_iocompletionport.c +++ b/ports/winnt/ntpd/ntp_iocompletionport.c @@ -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++) {