Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 30614 invoked from network); 9 Aug 2005 13:59:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2005 13:59:00 -0000 Received: (qmail 88207 invoked by uid 500); 9 Aug 2005 13:58:54 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 88156 invoked by uid 500); 9 Aug 2005 13:58:54 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 88141 invoked by uid 99); 9 Aug 2005 13:58:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2005 06:58:54 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of parin.soc@gmail.com designates 64.233.162.204 as permitted sender) Received: from [64.233.162.204] (HELO zproxy.gmail.com) (64.233.162.204) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2005 06:59:15 -0700 Received: by zproxy.gmail.com with SMTP id l1so153170nzf for ; Tue, 09 Aug 2005 06:58:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MiTca/Zv/R2/3VvP/S2zHsyqn8XZkebjRD23JPL91C5GjK12PsHj2Lm10uzN/mBGbnHQqmZ4A2V6V6C5NCTXaP5nYX4MFNWN7lVC8NI2scOheGbuL9/CUGoLSyz71MbpCLV6YoOUjzc5eAqoqtNCjDSUkNTSRhPLz0aQgTIxNpM= Received: by 10.37.15.80 with SMTP id s80mr1019569nzi; Tue, 09 Aug 2005 06:58:51 -0700 (PDT) Received: by 10.36.154.8 with HTTP; Tue, 9 Aug 2005 06:58:51 -0700 (PDT) Message-ID: Date: Tue, 9 Aug 2005 08:58:51 -0500 From: Parin Shah To: dev@httpd.apache.org Subject: Re: how to make sub-requests? In-Reply-To: <6.2.1.2.2.20050808054310.05353120@pop3.rowe-clan.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <40891.196.8.104.31.1123496141.squirrel@www.sharp.fm> <6.2.1.2.2.20050808054310.05353120@pop3.rowe-clan.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for your replies. There is a way to create a request rec using function: ap_read_request(conn_rec *). now conn_rec could be created using ap_run_create_connection function which takes pool, socket, bucket and some other arguments. I waasnt sure how to get socket information as we cannot use the connection of any current request_rec for that. It would be really helpful if you can suggest me some pointers for this. Thanks, Parin. On 8/8/05, William A. Rowe, Jr. wrote: > At 05:15 AM 8/8/2005, Graham Leggett wrote: > >Parin Shah said: > > > >> we can store the original request_req which was used when the page was > >> served from cache, and then use it as a parameter to the above method. > >> Is this approach is fine? > > > >This isn't very clean, a request_req is just a structure, they should be > >relatively simple to make. Look for the code within the core that brings > >the request_req into existence for the first time, you should be able to > >see how it gets created. >=20 > Actually I'd suggest you use the core to create that request_rec, > rather than chasing upgrades for all the things you need to add > custom when the structure changes. The request_rec can and does > grow on mmn minor bumps, so that's an extra reason to avoid ever > allocating one yourself. You will have very minimal ABI compat > if you allocate your own, and should probably emit a warning on > startup if you see the mmn minor has moved. >=20 > Bill >=20 >=20 >