From: Dave Hart Date: Tue, 24 Mar 2009 15:04:27 +0000 (+0000) Subject: ntp_iocompletionport.c: X-Git-Tag: NTP_4_2_5P160~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f42edafcefe78569b4001ea25f0bdb046b81952c;p=thirdparty%2Fntp.git ntp_iocompletionport.c: use one receive per socket to avoid Win2000 afd.sys bugcheck 0x76 bk: 49c8f67bBLYYU-ZzYkwKCmID6RsOTw --- diff --git a/ports/winnt/ntpd/ntp_iocompletionport.c b/ports/winnt/ntpd/ntp_iocompletionport.c index 7734a848b..4e49fa11f 100644 --- a/ports/winnt/ntpd/ntp_iocompletionport.c +++ b/ports/winnt/ntpd/ntp_iocompletionport.c @@ -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++) {