From fa3ba046f1b6371edc4facbf2e5f8b10c5a5c153 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 14 Mar 2002 04:08:51 +0000 Subject: [PATCH] The be-certain-we-own-the-socket patch to listen.c fails if we hang on to the originals after duplicating sockets. If you dup, you aught to be closing the source. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93925 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/mpm_winnt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 4d46b215db..17c69cfd57 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -503,6 +503,7 @@ static int set_listeners_noninheritable(apr_pool_t *p) "set_listeners_noninheritable: DuplicateHandle failed."); } else { + closesocket(nsd); nsd = (SOCKET) dup; apr_os_sock_put(&lr->sd, &nsd, p); } -- 2.40.0