From: Dave Hart Date: Tue, 24 Mar 2009 15:04:27 +0000 (+0000) Subject: ntp_iocompletionport.c: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=651e56f64c7ce5fa561486bb7bfc271f19db5dc5;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 7734a848b0..4e49fa11f4 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++) {