Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 2204 invoked by uid 6000); 4 Dec 1998 23:32:12 -0000 Received: (qmail 2197 invoked from network); 4 Dec 1998 23:32:09 -0000 Received: from devsys.jagunet.com (206.156.208.6) by taz.hyperreal.org with SMTP; 4 Dec 1998 23:32:09 -0000 Received: (from jim@localhost) by devsys.jaguNET.com (8.9.1a/jag-2.5) id SAA23318 for new-httpd@apache.org; Fri, 4 Dec 1998 18:32:05 -0500 (EST) From: Jim Jagielski Message-Id: <199812042332.SAA23318@devsys.jaguNET.com> Subject: Re: Status bug FIX ?? To: new-httpd@apache.org Date: Fri, 4 Dec 1998 18:32:04 -0500 (EST) In-Reply-To: from "Dean Gaudet" at Dec 4, 98 03:14:35 pm X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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"