httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@covalent.net>
Subject Re: nasty bug in Apache for Windows (1.3 & 2.)
Date Fri, 13 Jul 2001 15:09:42 GMT

> > > The problem is that the processes started by the child are inheriting the sockets
from the
> child. I
> > > wasn't clear about that.
> > >
> > > The parent needs to manage the listen sockets to enable graceful restarts to
work.  Having the
> > > parent own the listeners allows us to not destroy the listen queue (and anything
on it) across a
> > > graceful restart.  The code to prevent inheriting the socket is quite simple,
it was just
> behaving
> > > strangely (see below).
> >
> > I have a patch on my computer that closes the sockets when children create
> > child processes.  I haven't committed it because I haven't fully tested it
> > yet.  I'll try to finish it up and commit it tonight.  This patch should
> > fix a big part of this part of the problem.
> >
>
> I suspect your patch is specific to Unix.  I already have the fix for the Windows MPM.

It shouldn't be.  There is a bug in the Bug DB that says that child
processes children are not closing the socket.  This is happening on ALL
platforms.  The solution should be to add the correct cleanups so that the
socket is closed whenever the child calls apr_create_process.

Ryan

_____________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
Covalent Technologies			rbb@covalent.net
-----------------------------------------------------------------------------


Mime
View raw message