httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: Status bug FIX ??
Date Fri, 04 Dec 1998 23:32:04 GMT
Dean Gaudet wrote:
> 
> On Fri, 4 Dec 1998, Jim Jagielski wrote:
> 
> > Dean Gaudet wrote:
> > > 
> > > On Fri, 4 Dec 1998, Harrie Hazewinkel wrote:
> > > 
> > > > And since we only use the "server_hostname" of the server_rec
> > > > for "mod_status" I now use the "server_hostname" ptr directly
> > > > in the scoreboard.
> > > 
> > > That, too, breaks across restart.
> > > 
> > > Jim committed a fix which works in most cases, but still has a race
> > > condition.  The race condition is when a child is in the middle of serving
> > > a status request when a graceful restart happens, it will start reading
> > > server_rec's from children of the newer generation.
> > > 
> > 
> > Is that bad, ie: reading server_rec's from the _newer_ generation? At
> > least it's valid data. I had thought that the only problem was reading
> > server_rec info from the _previous_ generation, which would be bogus.
> > I admit that I hadn't considered the former...
> 
> Yup it's bad to read any pointer from another generation, newer or older,
> because the parent used to spawn the other child didn't have the same
> memory map.
> 

Gotcha. I had assumed that the memory would still be valid through
generations.

-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Mime
View raw message