Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 91675 invoked from network); 23 Jul 2009 13:44:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jul 2009 13:44:29 -0000 Received: (qmail 55571 invoked by uid 500); 23 Jul 2009 13:45:34 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 55510 invoked by uid 500); 23 Jul 2009 13:45:34 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 55500 invoked by uid 99); 23 Jul 2009 13:45:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 13:45:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 13:45:24 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MTybX-0004qI-87 for modules-dev@httpd.apache.org; Thu, 23 Jul 2009 06:45:03 -0700 Message-ID: <24626078.post@talk.nabble.com> Date: Thu, 23 Jul 2009 06:45:03 -0700 (PDT) From: ricardo13 To: modules-dev@httpd.apache.org Subject: Re: How do I manipulate request_rec Object in worker.c In-Reply-To: <1248355748.2291.62.camel@strangepork.london.mintel.ad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ricardoogrande@gmail.com References: <24496166.post@talk.nabble.com> <1404e5910907150450q493f6642r972e31f605c44cd@mail.gmail.com> <24563523.post@talk.nabble.com> <1404e5910907200425q1b39bae3wb8a2c1db699ec50c@mail.gmail.com> <24586921.post@talk.nabble.com> <24625213.post@talk.nabble.com> <1248355748.2291.62.camel@strangepork.london.mintel.ad> X-Virus-Checked: Checked by ClamAV on apache.org Hi, In Brazil, there is a phrase. "A image explain more than many words". My idea is develop the block SPTF. http://www.nabble.com/file/p24626078/idea.jpg idea.jpg What's the best way ? Create a module ?? What hook ?? Thank you an sorry about misquote Ricardo Tom Evans-3 wrote: > > On Thu, 2009-07-23 at 05:59 -0700, ricardo13 wrote: >> Hi, >> >> >> ricardo13 wrote: >> > >> > >> > >> > Eric Covener wrote: >> >> >> >> On Sun, Jul 19, 2009 at 11:50 PM, ricardo13 >> >> wrote: >> >> >> >>>> One question for I undestand the sequence of hooks. >> >>>> Do It means that firstly worker.c processes sockets (accept >> >>>> connections), >> >>>> after other modules processes the hooks (post_read_request, >> >>>> translate_name, map_to_storage, etc..)?? >> >> >> >> Yes, although there are connection-related hooks that run in-between >> >> the two things you mentioned. >> >> Is pre-connection a hook ? >> >> >> >> What's the best hook for manipulate a pool of requests ?? >> >> >> >> I've understood that hooks like as (post_read_request, create_request, >> >> ...) manipulates ONLY ONE request. >> >> Now, I would like to manipulate sockets as worker.c, but manipulate >> >> requests object before the content generator. >> >> >> >> Thank You >> >> Ricardo >> >> Ricardo >> >> >> >> -- >> >> Eric Covener >> >> covener@gmail.com >> >> >> >> >> > >> > >> > > Can you do something about your mail client? As you can see here, you > seem to be putting your message inside of the mail you quoted. It is > extremely difficult to read what you are asking. > > worker.c is a MPM, which the docs say: > > The server ships with a selection of Multi-Processing Modules > (MPMs) which are responsible for binding to network ports on the > machine, accepting requests, and dispatching children to handle > the requests. > > The request_rec is not setup until the socket is handled by a child > thread/process, and so outside of the scope of worker.c > > Can you re-explain, clearly, exactly what it is you are trying to > achieve? I understand it is some sort of QoS load balancing. > > Tom > > > -- View this message in context: http://www.nabble.com/How-do-I-manipulate-request_rec-Object-in-worker.c-tp24496166p24626078.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.