From 9765f8f0b8e8fb92820ab5994c3cc5e38f10a443 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Sun, 13 Oct 2002 20:06:59 +0000 Subject: [PATCH] Bigger hack alert. Expand the range of unrecycled sockets to include WSAENOTSOCK for dealing with the AcceptEx failed bug reports. Experimental build to go out shortly. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97197 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/child.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 9046287245..dd8c471a3f 100644 --- a/server/mpm/winnt/child.c +++ b/server/mpm/winnt/child.c @@ -512,7 +512,8 @@ static void winnt_accept(void *lr_) &BytesRead, &context->Overlapped)) { rv = apr_get_netos_error(); - if (rv == APR_FROM_OS_ERROR(WSAEINVAL)) { + if (rv == APR_FROM_OS_ERROR(WSAEINVAL) || + rv == APR_FROM_OS_ERROR(WSAENOTSOCK)) { /* Hack alert. Occasionally, TransmitFile will not recycle the * accept socket (usually when the client disconnects early). * Get a new socket and try the call again. -- 2.50.1