summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-10-13 22:06:59 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-10-13 22:06:59 +0200
commit9765f8f0b8e8fb92820ab5994c3cc5e38f10a443 (patch)
tree58494224204b7b24b6cc0566341564ba653491f3
parentupdated transformation (diff)
downloadapache2-9765f8f0b8e8fb92820ab5994c3cc5e38f10a443.tar.xz
apache2-9765f8f0b8e8fb92820ab5994c3cc5e38f10a443.zip
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
-rw-r--r--server/mpm/winnt/child.c3
1 files changed, 2 insertions, 1 deletions
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.