]> granicus.if.org Git - apache/commit
In 2.4, the MPM leaves a copy of the non-disconnected FD sitting in
authorEric Covener <covener@apache.org>
Sun, 15 Sep 2013 02:25:32 +0000 (02:25 +0000)
committerEric Covener <covener@apache.org>
Sun, 15 Sep 2013 02:25:32 +0000 (02:25 +0000)
commita9297bf0b875a1ecb28a30ac89d0b8db9162bb53
tree73ac22365be0895759ac4accece604474529f1ac
parent845a820dcf1bcd4cd941614fdaea8dcaa861fd6a
In 2.4, the MPM leaves a copy of the non-disconnected FD sitting in
context->accept_socket. This FD will be closed a second time, often
shortly after a worker picks it up in this same FD being reused.  The
first recv fails with WSAENOTSOCK since the same FD was closed in the
listener thread while the worker was pulling it off the queue

(The second close is of the underlying FD/socket, not a shared
apr_socket_t, so it's not short-circuited)

This patch makes it a bit more 2.2.x-ish and solves my problem -- the
context->accept_socket gets zapped at the bottom of the loop if
!disconnected.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1523387 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
server/mpm/winnt/child.c