You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/03/14 05:08:51 UTC

cvs commit: httpd-2.0/server/mpm/winnt mpm_winnt.c

wrowe       02/03/13 20:08:51

  Modified:    server/mpm/winnt mpm_winnt.c
  Log:
    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.
  
  Revision  Changes    Path
  1.240     +1 -0      httpd-2.0/server/mpm/winnt/mpm_winnt.c
  
  Index: mpm_winnt.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/winnt/mpm_winnt.c,v
  retrieving revision 1.239
  retrieving revision 1.240
  diff -u -r1.239 -r1.240
  --- mpm_winnt.c	13 Mar 2002 20:48:04 -0000	1.239
  +++ mpm_winnt.c	14 Mar 2002 04:08:51 -0000	1.240
  @@ -503,6 +503,7 @@
                            "set_listeners_noninheritable: DuplicateHandle failed.");
           }
           else {
  +            closesocket(nsd);
               nsd = (SOCKET) dup;
               apr_os_sock_put(&lr->sd, &nsd, p);
           }