Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 40046 invoked by uid 500); 18 Apr 2001 08:59:09 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 40025 invoked from network); 18 Apr 2001 08:59:07 -0000 X-Authentication-Warning: kurgan.lyra.org: gstein set sender to gstein@lyra.org using -f Date: Wed, 18 Apr 2001 02:01:25 -0700 From: Greg Stein To: new-httpd@apache.org Subject: Re: [PATCH] Take two on the conn_rec change Message-ID: <20010418020125.B31832@lyra.org> Mail-Followup-To: new-httpd@apache.org References: <20010417154318.R31832@lyra.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from rbb@covalent.net on Tue, Apr 17, 2001 at 08:09:49PM -0700 X-URL: http://www.lyra.org/greg/ X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Tue, Apr 17, 2001 at 08:09:49PM -0700, rbb@covalent.net wrote: > On Tue, 17 Apr 2001, Greg Stein wrote: >... > > +1 because I'd like to see more HTTP stuff move back to modules/http/. IMO, > > it was a mistake to move them back to server/ in the first place :-) > > As I said when I moved it, it was a guess. Things are likely to move back > and forth for a little while. Yup. That wasn't a problem from my standpoint, but just describing my reason for a +1, while we're all talking about destabilizing :-). >... > > > +struct ap_http_conn_rec { > > > + /** How many times have we used it? */ > > > + int keepalives; > > > +}; > > > > Is it really worth it to create this structure? Other guys use it, so it > > isn't private. Do we envision more stuff going into this from the conn_rec? > > (i.e. moving soon; we can always create this structure later) > > The only other file that uses this structure is mod_log_config, and that > is going to change later tonight. I would rather use the structure, > because it makes it much easier to move stuff into this structure later. > I hope that more people start to look at the stuff in the conn_rec, and > move things out of it as soon as they can. Hmm. All righty. I took a look, and another easy call about be "vhost_lookup_data". "remain" shouldn't even exist :-). The filters and notes could probably go, but they're a bit more difficult to justify. Not really related to the move: Stuff like the remote_ip and _host are probably derivatives of remote_addr, right? Same for local_ip and _host. Although the latter is kind of surprising since the base_server probably has that info. > > > @@ -571,7 +458,9 @@ > > > r->notes = apr_table_make(r->pool, 5); > > > > > > r->request_config = ap_create_request_config(r->pool); > > > - ap_run_create_request(r); > > > + if (ap_run_create_request(r) != 0) { > > > + return NULL; > > > + } > > > > That can return OK, DECLINE, or some kind of error (DONE in your patch). I > > believe that if DECLINE is returned, then we ought to error out (i.e. nobody > > is handling the request). > > DECLINE means that the current module isn't handling the request, but the > server keeps calling the other modules. At this point in the code, we can > not receive DECLINED. Sure. I meant that if all modules DECLINEd, then you'd have to punt. (which is exactly what happens now) Cheers, -g -- Greg Stein, http://www.lyra.org/