From modules-devomiller@example.net Fri Feb 01 16:58:55 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 65944 invoked from network); 1 Feb 2008 16:58:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 16:58:54 -0000 Received: (qmail 67704 invoked by uid 500); 1 Feb 2008 16:58:45 -0000 Delivered-To: omiller@example.net Received: (qmail 67681 invoked by uid 500); 1 Feb 2008 16:58:45 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 67670 invoked by uid 99); 1 Feb 2008 16:58:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:58:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO c12-smtp2s.cnet.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 16:58:31 +0000 X-SBRS: None X-IronPort-AV: E=Sophos;i="4.25,291,1199692800"; d="scan'208";a="223708216" Received: from c12-esa-netscaler-mib151.cnet.cnwk (HELO [83.161.120.155]) ([83.161.120.155]) by c12-smtp2s.cnet.cnwk with ESMTP; 01 Feb 2008 08:58:23 -0800 Subject: Behaviour for Connection: close From: Ronald Park <omiller@example.net> To: omiller@example.net Content-Type: text/plain Organization: CNET Networks, Inc. Date: Fri, 01 Feb 2008 11:59:56 -0500 Message-Id: <omiller@example.net> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2-2.1mdv2007.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I'm writing a module which is intended to do it's work 'asynchronously'. My module takes the body of a POST, stores it into a note and immediately generates a response code of 200. Then, during the logging stage, it does that actual work (in my case, writing stuff into a db). I have 'KeepAlives off' and, as expected, Apache sends back the 200 and 'Connection: close'... however, it does not "immediately" close the socket. It proceeds to do logging and runs my code *then* closes the socket. The behavior is fine for some clients, those that see the 'Connection: close' and close their connections themselves. For them, my module is 'asynchronous'. For others clients though, ones which wait for the server to close, it's not; their requests are practically synchronous (actually, a little slower). Is there a way to hook my module in absolutely after the close is called? Is there a way to get the socket close to occur immediately after the response is sent? Or, am I going to have to do something like spawning off a thread, copying all the request data into that thread (so it doesn't go poof when the request pool is destroyed) and doing my work in that thread? :( Thanks, Ron From modules-devomiller@example.net Fri Feb 01 17:12:28 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 70306 invoked from network); 1 Feb 2008 17:12:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 17:12:28 -0000 Received: (qmail 94561 invoked by uid 500); 1 Feb 2008 17:12:18 -0000 Delivered-To: omiller@example.net Received: (qmail 94551 invoked by uid 500); 1 Feb 2008 17:12:18 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 94542 invoked by uid 99); 1 Feb 2008 17:12:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 09:12:18 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mailgate.mysql.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 17:11:50 +0000 Received: from localhost (localhost.localdomain [83.161.120.155]) by mailgate.mysql.com (8.13.8/8.13.8) with ESMTP id m11HBtNx012021 for <omiller@example.net>; Fri, 1 Feb 2008 18:11:55 +0100 Received: from mail.mysql.com ([83.161.120.155]) by localhost (mailgate.mysql.com [83.161.120.155]) (amavisd-new, port 10026) with LMTP id 06092-07 for <omiller@example.net>; Fri, 1 Feb 2008 18:11:55 +0100 (CET) Received: from sam-by-land.lenoxway.net (m198-158.dsl.rawbw.com [83.161.120.155]) (authenticated bits=0) by mail.mysql.com (8.13.3/8.13.3) with ESMTP id m11HBiTR003211 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for <omiller@example.net>; Fri, 1 Feb 2008 18:11:46 +0100 Message-Id: <omiller@example.net> From: John David Duncan <omiller@example.net> To: omiller@example.net In-Reply-To: <omiller@example.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: Behaviour for Connection: close Date: Fri, 1 Feb 2008 09:11:43 -0800 References: <omiller@example.net> X-Mailer: Apple Mail (2.915) X-Virus-Scanned: by omiller@example.net X-Virus-Checked: Checked by ClamAV on apache.org Hi Ronald, I can't answer your question. But I wanted to mention: as I understand the standard, you should be returning a "202 Accepted" rather than a 200 in this case. JD On Feb 1, 2008, at 8:59 AM, Ronald Park wrote: > I'm writing a module which is intended to do it's work > 'asynchronously'. My module takes the body of a POST, > stores it into a note and immediately generates a response > code of 200. Then, during the logging stage, it does > that actual work (in my case, writing stuff into a db). > > I have 'KeepAlives off' and, as expected, Apache sends > back the 200 and 'Connection: close'... however, it does > not "immediately" close the socket. It proceeds to do > logging and runs my code *then* closes the socket. > > The behavior is fine for some clients, those that see the > 'Connection: close' and close their connections themselves. > For them, my module is 'asynchronous'. For others clients > though, ones which wait for the server to close, it's not; > their requests are practically synchronous (actually, a > little slower). > > Is there a way to hook my module in absolutely after the > close is called? Is there a way to get the socket close > to occur immediately after the response is sent? > > Or, am I going to have to do something like spawning off > a thread, copying all the request data into that thread > (so it doesn't go poof when the request pool is destroyed) > and doing my work in that thread? :( > > Thanks, > Ron > From modules-devomiller@example.net Fri Feb 01 18:03:59 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 90318 invoked from network); 1 Feb 2008 18:03:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 18:03:59 -0000 Received: (qmail 83504 invoked by uid 500); 1 Feb 2008 18:03:50 -0000 Delivered-To: omiller@example.net Received: (qmail 83188 invoked by uid 500); 1 Feb 2008 18:03:49 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 83179 invoked by uid 99); 1 Feb 2008 18:03:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 10:03:49 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO grimnir.webthing.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 18:03:33 +0000 Received: from grimnir.webthing.com (localhost [83.161.120.155]) by grimnir.webthing.com (Postfix) with ESMTP id 4FD2E2137 for <omiller@example.net>; Fri, 1 Feb 2008 18:03:25 +0000 (GMT) Date: Fri, 1 Feb 2008 18:03:24 +0000 From: Nick Kew <omiller@example.net> To: omiller@example.net Subject: Re: Behaviour for Connection: close Message-ID: <20080201180324.1b4e7ffb@grimnir> In-Reply-To: <omiller@example.net> References: <omiller@example.net> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 01 Feb 2008 11:59:56 -0500 Ronald Park <omiller@example.net> wrote: > I'm writing a module which is intended to do it's work > 'asynchronously'. My module takes the body of a POST, > stores it into a note and immediately generates a response > code of 200. Someone already mentioned 202:-) > Is there a way to hook my module in absolutely after the > close is called? Is there a way to get the socket close > to occur immediately after the response is sent? No. The Connection outlives the Request. > Or, am I going to have to do something like spawning off > a thread, copying all the request data into that thread > (so it doesn't go poof when the request pool is destroyed) > and doing my work in that thread? :( Well, you could create a thread at child_init, and use an apr_queue to pass data to it, preferably in fixed-size chunks (else you're going to have fun managing memory). Or if the requests are large, maybe spool them to disc and you can process them entirely separately (c.f. mod_smtpd or other mailserver). -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/ From modules-devomiller@example.net Sun Feb 03 09:24:56 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 77384 invoked from network); 3 Feb 2008 09:24:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Feb 2008 09:24:56 -0000 Received: (qmail 43155 invoked by uid 500); 3 Feb 2008 09:24:46 -0000 Delivered-To: omiller@example.net Received: (qmail 43142 invoked by uid 500); 3 Feb 2008 09:24:46 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 43133 invoked by uid 99); 3 Feb 2008 09:24:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2008 01:24:46 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO Anchorfree.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2008 09:24:18 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C86646.83FFD526" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Getting Apache to dump core Date: Sun, 3 Feb 2008 01:24:02 -0800 Message-ID: <omiller@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Getting Apache to dump core Thread-Index: AchmRoP2aZCn7UmLS3ezk3N/LnH50Q== From: "Peter Belau" <omiller@example.net> To: <omiller@example.net> X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C86646.83FFD526 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Does anyone know how to get Apache running on Linux to successfully dump = core on a segfault ? I'm seeing very rare segfaults on long-running = Apache processes under high volume. Also, any info regarding probable = segfault causes and sanity checks to make both in terms of configuration = and module programming techniques much appreciated. ------_=_NextPart_001_01C86646.83FFD526-- From modules-devomiller@example.net Sun Feb 03 16:14:10 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 17346 invoked from network); 3 Feb 2008 16:14:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Feb 2008 16:14:10 -0000 Received: (qmail 89173 invoked by uid 500); 3 Feb 2008 16:14:01 -0000 Delivered-To: omiller@example.net Received: (qmail 89153 invoked by uid 500); 3 Feb 2008 16:14:01 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 89144 invoked by uid 99); 3 Feb 2008 16:14:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2008 08:14:00 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO cr.toftum.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2008 16:13:31 +0000 Received: from localhost (localhost [83.161.120.155]) by cr.toftum.org (Postfix) with ESMTP id 17B80454796 for <omiller@example.net>; Sun, 3 Feb 2008 17:13:36 +0100 (CET) X-Virus-Scanned: omiller@example.net Received: from cr.toftum.org ([83.161.120.155]) by localhost (cr.toftum.org [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id iqhCHIPPzGvY for <omiller@example.net>; Sun, 3 Feb 2008 17:13:20 +0100 (CET) Received: by cr.toftum.org (Postfix, from userid 1000) id F0D2C3182F0; Sun, 3 Feb 2008 17:13:19 +0100 (CET) Date: Sun, 3 Feb 2008 17:13:19 +0100 From: Mads Toftum <omiller@example.net> To: omiller@example.net Subject: Re: Getting Apache to dump core Message-ID: <20080203161319.GH26286@cr> Mail-Followup-To: omiller@example.net References: <omiller@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <omiller@example.net> X-Mailer: mutt X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Feb 03, 2008 at 01:24:02AM -0800, Peter Belau wrote: > Does anyone know how to get Apache running on Linux to successfully dump core on a segfault ? I'm seeing very rare segfaults on long-running Apache processes under high volume. Also, any info regarding probable segfault causes and sanity checks to make both in terms of configuration and module programming techniques much appreciated. See "Apache Debugging Guide" - http://httpd.apache.org/dev/debugging.html vh Mads Toftum -- http://soulfood.dk From modules-devomiller@example.net Mon Feb 04 21:38:26 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 32076 invoked from network); 4 Feb 2008 21:38:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Feb 2008 21:38:26 -0000 Received: (qmail 22541 invoked by uid 500); 4 Feb 2008 21:38:17 -0000 Delivered-To: omiller@example.net Received: (qmail 22529 invoked by uid 500); 4 Feb 2008 21:38:17 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 22520 invoked by uid 99); 4 Feb 2008 21:38:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 13:38:17 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO c12-smtp1s.cnet.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 21:37:49 +0000 X-SBRS: None X-IronPort-AV: E=Sophos;i="4.25,304,1199692800"; d="scan'208";a="273080891" Received: from c12-esa-netscaler-mip1.cnet.com (HELO [83.161.120.155]) ([83.161.120.155]) by c12-smtp1s.cnet.cnwk with ESMTP; 04 Feb 2008 13:37:56 -0800 Subject: mod_proxy timeouts From: Ronald Park <omiller@example.net> To: omiller@example.net Content-Type: multipart/mixed; boundary="=-7Naii8Nd/IeVzfIPLGsv" Organization: CNET Networks, Inc. Date: Mon, 04 Feb 2008 16:39:29 -0500 Message-Id: <omiller@example.net> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2-2.1mdv2007.1 X-Virus-Checked: Checked by ClamAV on apache.org --=-7Naii8Nd/IeVzfIPLGsv Content-Type: text/plain Content-Transfer-Encoding: 7bit According to the description of the ProxyTimeout directive, this is the expected behavior: > This directive allows a user to specifiy a timeout on proxy requests. > This is useful when you have a slow/buggy appserver which hangs, and > you would rather just return a timeout and fail gracefully instead > of waiting however long it takes the server to return. However, this is not what occurs. The ProxyTimeout is only used to obtain the connection to the 'origin server'; when it actually sends the proxied request and waits for the response, the value of the Timeout directive is used. Unfortunately, mod_proxy uses a core function called 'pre_connection' after the connection has been made (despite the 'pre' in the function name :D) and therein lies the problem. That code only has access to the server config, not the modules configs, and it resets the timeout to the value of the Timeout directive. My fix is to reset the timeout *after* the call to pre_connection if this directive is set. I also added new functionality allowing a special environment variable ("proxy-timeout") to be set to overload the directive for more fine-grained control. This would allow the following: ProxyTimeout 15 RewriteRule ^/proxy/(.*)$ http://someotherserver.com/$1 RewriteRule ^/quick/(.*)$ http://someotherserver.com/$1 \ [E=proxy-timeout:5] RewriteRule ^/slow/(.*)$ http://someotherserver.com/$1 \ [E=proxy-timeout:30] This allows three different proxies timeouts to the same origin server (someotherserver.com) based on the URL to the forward proxy. Attached is my patch to 2.0.63 to the proxy_http.c file in modules/proxy. Thanks, Ron --=-7Naii8Nd/IeVzfIPLGsv Content-Disposition: attachment; filename=httpd-2.0.63-proxy_http.patch Content-Type: text/x-patch; name=httpd-2.0.63-proxy_http.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- modules/proxy/proxy_http.c.orig 2007-09-04 15:33:45.000000000 -0400 +++ modules/proxy/proxy_http.c 2008-02-04 14:57:21.000000000 -0500 @@ -379,6 +379,36 @@ "proxy: HTTP: pre_connection setup failed (%d)", rc); return rc; + } else { + // that pre_connection code sets the socket timeout as + // the value of Timeout which is the timeout of the + // original request; by the time that is hit, our client + // has already been given a timeout + // + // instead, we'll look to see if an env var, proxy-timeout, + // has been set: if so, we use it; otherwise, we use + // the setting for ProxyTimeout (if set); (otherwise, we + // will stick with the value of Timeout.) + const char* tbl_timeout; + apr_interval_time_t timeout = (conf->timeout_set) ? + conf->timeout : 0; + + tbl_timeout = apr_table_get(r->subprocess_env, "proxy-timeout"); + if (tbl_timeout == NULL) { + tbl_timeout = apr_table_get(r->notes, "proxy-timeout"); + } + if (tbl_timeout != NULL) { + int int_timeout = atoi(tbl_timeout); + if (int_timeout > 0) { + timeout = apr_time_from_sec(int_timeout); + } + } + if (timeout > 0) { + apr_socket_timeout_set(p_conn->sock, timeout); + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, + "proxy: setting request timeout (%d)", timeout); + } + } } return OK; --=-7Naii8Nd/IeVzfIPLGsv-- From modules-devomiller@example.net Mon Feb 04 22:12:43 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 45186 invoked from network); 4 Feb 2008 22:12:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Feb 2008 22:12:43 -0000 Received: (qmail 66084 invoked by uid 500); 4 Feb 2008 22:12:33 -0000 Delivered-To: omiller@example.net Received: (qmail 66064 invoked by uid 500); 4 Feb 2008 22:12:33 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 66055 invoked by uid 99); 4 Feb 2008 22:12:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 14:12:33 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rv-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 22:12:05 +0000 Received: by rv-out-0910.google.com with SMTP id l15so1422075rvb.24 for <omiller@example.net>; Mon, 04 Feb 2008 14:12:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=WAP9VnpJRXpCj9p/mChCvwzUnkVYz+PbZgq1fW+fVzg=; b=bFNmFDQtLqxWfKzrbZh9nwFOpCwUk114/pDm+1veOoA6Hf8agWyEHQJh7ur+JY7sAMW+56LNTaqtR4CFl1JfkdmcMqwFi24u/CXfPnqFBztOvqtUdohluHQn3x77K0SPzxiSy7QbOeDzMI/ktReWZoSuBnhlt1c2JbVtT8NzuCs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eb9yWTtKTA5+kQog54932jOkGJ/C+ps9So6/yS6uFCl2jDSzDukt/79Mk5YLAKavETWtP2KSKNEGfJUQxzeCI5uOe8z49qyPXk6CHgm1xHdLWHmNn3sznfdStpjWY/cCOjpcG3giMqAeWoOOhHP56OKX7CvpJG6Gj8KZIctg8d0= Received: by 83.161.120.155 with SMTP id d20mr5095830rvo.108.1202163127855; Mon, 04 Feb 2008 14:12:07 -0800 (PST) Received: by 83.161.120.155 with HTTP; Mon, 4 Feb 2008 14:12:07 -0800 (PST) Message-ID: <omiller@example.net> Date: Mon, 4 Feb 2008 17:12:07 -0500 From: "Eric Covener" <omiller@example.net> To: omiller@example.net Subject: Re: mod_proxy timeouts In-Reply-To: <omiller@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <omiller@example.net> X-Virus-Checked: Checked by ClamAV on apache.org On Feb 4, 2008 4:39 PM, Ronald Park <omiller@example.net> wrote: > According to the description of the ProxyTimeout directive, this > is the expected behavior: I think this is more OT at dev@httpd, but you should verify the state of affairs in trunk and 2.2.x first. There has been work on this issue. -- Eric Covener omiller@example.net From modules-devomiller@example.net Tue Feb 05 19:40:37 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 5599 invoked from network); 5 Feb 2008 19:40:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Feb 2008 19:40:37 -0000 Received: (qmail 80240 invoked by uid 500); 5 Feb 2008 19:40:28 -0000 Delivered-To: omiller@example.net Received: (qmail 80219 invoked by uid 500); 5 Feb 2008 19:40:28 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 80210 invoked by uid 99); 5 Feb 2008 19:40:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 11:40:28 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO c12-smtp1s.cnet.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 19:40:00 +0000 X-SBRS: None X-IronPort-AV: E=Sophos;i="4.25,308,1199692800"; d="scan'208";a="273342439" Received: from c12-erp-netscaler2-pool.cnet.cnwk (HELO [83.161.120.155]) ([83.161.120.155]) by c12-smtp1s.cnet.cnwk with ESMTP; 05 Feb 2008 11:39:45 -0800 Subject: Re: mod_proxy timeouts From: Ronald Park <omiller@example.net> To: omiller@example.net In-Reply-To: <omiller@example.net> References: <omiller@example.net> <omiller@example.net> Content-Type: text/plain Organization: CNET Networks, Inc. Date: Tue, 05 Feb 2008 14:41:18 -0500 Message-Id: <omiller@example.net> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2-2.1mdv2007.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org It seems like mod_proxy has gone through a lot of changes in 2.2, including changes to handling of timeouts. I brought up my initial concerns about the handling of ProxyTimeout on the dev@httpd list and got absolutely no response. :( Perhaps a patch will get a little more interest there so I'll go ahead and try. Ron On Mon, 2008-02-04 at 17:12 -0500, Eric Covener wrote: > On Feb 4, 2008 4:39 PM, Ronald Park <omiller@example.net> wrote: > > According to the description of the ProxyTimeout directive, this > > is the expected behavior: > > I think this is more OT at dev@httpd, but you should verify the state > of affairs in trunk and 2.2.x first. There has been work on this > issue. > From modules-devomiller@example.net Thu Feb 07 06:46:48 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 62036 invoked from network); 7 Feb 2008 06:46:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Feb 2008 06:46:47 -0000 Received: (qmail 75751 invoked by uid 500); 7 Feb 2008 06:46:39 -0000 Delivered-To: omiller@example.net Received: (qmail 75728 invoked by uid 500); 7 Feb 2008 06:46:39 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 75716 invoked by uid 99); 7 Feb 2008 06:46:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 22:46:39 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO web30008.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 07 Feb 2008 06:46:09 +0000 Received: (qmail 48806 invoked by uid 60001); 7 Feb 2008 06:46:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=JsAJxeeQyjl6mbFG3zh64nscTv/k6/i7tSoO4Q0zrURblGg+Z+UK8aZH3EeJV61l0iLsdRry5GYCLC1jeCqpvyOx4wsn7hfWrAvqbwKxG+RTYLyUviQp3dkGLJnKqVXplayhVih/FcnmfG7wKbW+9cLUdoj3lXogDCDrbyqlTQw=; X-YMail-OSG: 0aqjIGEVM1kc15TmLsUauME47E4rMUlqbx7wuQDczcd4OqF7YMV1sJgohMe68mgxbHKpBzJo7wVY4Wq3FL0NvHDhQbiLmJ1Q9Ce6HGjwEsITr2gU7Vbk5UXDldKPhw-- Received: from [83.161.120.155] by web30008.mail.mud.yahoo.com via HTTP; Wed, 06 Feb 2008 22:46:15 PST Date: Wed, 6 Feb 2008 22:46:15 -0800 (PST) From: Seth Cherney <omiller@example.net> Subject: mysql auth module To: omiller@example.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2075986002-1202366775=:45700" Content-Transfer-Encoding: 8bit Message-ID: <omiller@example.net> X-Virus-Checked: Checked by ClamAV on apache.org --0-2075986002-1202366775=:45700 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit OK, I signed onto this list about 4 months ago, and have never seen anything remotely close to my low level of skill posed as a Q on the list. I have been trying to rewrite a mysql login module to include more fields to check / update. Certain parts are quite easy, but, basically I could never finish since I understand nothing of controling memory use etc, and would probably wind up with mem bloat from ... So, is there anyone on this list interested in this as a job? Its not a big one, but it is one! Or, If you have any leads... Those on the greater net who claim to do apache mods actually dont even reply to emails on their sites, and, the lead dev for this mod is not interested - he is a prof with other things to do. May reply privately of course! Thanks, Seth --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. --0-2075986002-1202366775=:45700-- From modules-devomiller@example.net Thu Feb 07 13:06:10 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 24100 invoked from network); 7 Feb 2008 13:06:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Feb 2008 13:06:10 -0000 Received: (qmail 42773 invoked by uid 500); 7 Feb 2008 13:06:02 -0000 Delivered-To: omiller@example.net Received: (qmail 42460 invoked by uid 500); 7 Feb 2008 13:06:02 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 42451 invoked by uid 99); 7 Feb 2008 13:06:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 05:06:01 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO grimnir.webthing.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 13:05:30 +0000 Received: from grimnir.webthing.com (localhost [83.161.120.155]) by grimnir.webthing.com (Postfix) with ESMTP id 3042B2137 for <omiller@example.net>; Thu, 7 Feb 2008 13:05:36 +0000 (GMT) Date: Thu, 7 Feb 2008 13:05:35 +0000 From: Nick Kew <omiller@example.net> To: omiller@example.net Subject: ANN: mod_xml2enc: improved i18n for markup filters. Message-ID: <20080207130535.2daa2ea5@grimnir> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I'm happy to announce that mod_xml2enc is now ready for use. mod_xml2enc is designed to be used with libxml2-based filter modules, such as: mod_accessibility mod_proxy_html mod_publisher mod_transform mod_xml2 mod_xslt and serves to improve their internationalisation support: (1) It sniffs the encoding of incoming documents, using HTTP headers where available, or XML or HTML rules where there is no HTTP information. (2) If a character set is not supported by libxml2, it converts to UTF-8 ahead of the markup filter. (3) It removes any encoding information that is invalidated by the processing, and substitutes a correct HTTP header. To take advantage of this, filter modules should use the xml2enc_charset optional function to retrieve the charset argument to pass to the libxml2 parser. Note that you may have to handle APR_EAGAIN, if your module sets up the parser before mod_xml2enc has been able to sniff the first data. I'll be updating published versions of my filter modules to use it as round tuits permit. Filter modules can also postprocess to output a different charset again, using the xml2enc_filter optional function. Additional capabilities are preprocessing of bad HTML (a function introduced in mod_proxy_html 3, but also relevant to other HTML modules), and an additional optional hook for preprocessing. These extra functions are untested. Developers, feel free to explore and send feedback! http://apache.webthing.com/mod_xml2enc/ -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/ From modules-devomiller@example.net Thu Feb 07 14:21:20 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 59028 invoked from network); 7 Feb 2008 14:21:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Feb 2008 14:21:20 -0000 Received: (qmail 43734 invoked by uid 500); 7 Feb 2008 14:21:12 -0000 Delivered-To: omiller@example.net Received: (qmail 43726 invoked by uid 500); 7 Feb 2008 14:21:12 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 43716 invoked by uid 99); 7 Feb 2008 14:21:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 06:21:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO onyx.sharktooth.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 14:20:40 +0000 Received: from corvette.dnsdhcp.provo.novell.com ([83.161.120.155]) by onyx.sharktooth.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from <omiller@example.net>) id 1JN7Sa-000I8Z-HU for omiller@example.net; Thu, 07 Feb 2008 07:10:44 -0700 Message-ID: <omiller@example.net> Date: Thu, 07 Feb 2008 07:20:36 -0700 From: Joe Lewis <omiller@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20071031) MIME-Version: 1.0 To: omiller@example.net References: <omiller@example.net> In-Reply-To: <omiller@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 83.161.120.155 X-SA-Exim-Mail-From: omiller@example.net X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on onyx.sharktooth.org X-Spam-Level: Subject: Re: mysql auth module X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on onyx.sharktooth.org) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.7 Seth Cherney wrote: > OK, I signed onto this list about 4 months ago, and have never seen anything remotely close to my low level of skill posed as a Q on the list. > I have been trying to rewrite a mysql login module to include more fields to check / update. Certain parts are quite easy, but, basically I could never finish since I understand nothing of controling memory use etc, and would probably wind up with mem bloat from ... > How about posting the questions? We can try to walk you through things. I had a mod_sam which included about three different tables for authentication (checking a hosts table to see if they were allowed, checking the password, and also any restrictions, all from MySQL), so the resources are available to assist. (I would do this because the more people that understand a module, the easier it is for them to troubleshoot should they encounter a problem.) Joe -- Joseph Lewis <http://sharktooth.org/> "Divide the fire, and you will sooner put it out." - Publius Syrus From modules-devomiller@example.net Thu Feb 07 14:24:23 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 59676 invoked from network); 7 Feb 2008 14:24:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Feb 2008 14:24:23 -0000 Received: (qmail 49416 invoked by uid 500); 7 Feb 2008 14:24:14 -0000 Delivered-To: omiller@example.net Received: (qmail 49392 invoked by uid 500); 7 Feb 2008 14:24:14 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 49383 invoked by uid 99); 7 Feb 2008 14:24:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 06:24:14 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp1.libero.it) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 14:23:58 +0000 Received: from mail2a.webresidence.it (83.161.120.155) by smtp1.libero.it (7.2.079) id 46740CFD00AEAC44 for omiller@example.net; Thu, 7 Feb 2008 15:23:51 +0100 Received: from [83.161.120.155] (83.161.120.155) by mail2a.webresidence.it (83.161.120.155) (authenticated as m.spinetti) id 470F85EC00166316 for omiller@example.net; Thu, 7 Feb 2008 15:23:50 +0100 Message-ID: <omiller@example.net> Date: Thu, 07 Feb 2008 15:21:38 +0100 From: Marco Spinetti <omiller@example.net> User-Agent: Mozilla Thunderbird 83.161.120.155 (Windows/20071210) MIME-Version: 1.0 To: omiller@example.net Subject: Pool child Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have a question about the pool of the child r->pool. I'm using apache 2.2 with prefork and I set MaxRequestsPerChild 0 (so a child should never dies). When my handler starts, I alloc all my needed memory from r->pool. When the handler finishes, the memory allocated from r->pool is free or not? Because the child never dies, I'd like to know if I have to free something or not. Best regards Marco From modules-devomiller@example.net Thu Feb 07 19:01:42 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 84256 invoked from network); 7 Feb 2008 19:00:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Feb 2008 19:00:02 -0000 Received: (qmail 51948 invoked by uid 500); 7 Feb 2008 18:59:54 -0000 Delivered-To: omiller@example.net Received: (qmail 51927 invoked by uid 500); 7 Feb 2008 18:59:54 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 51918 invoked by uid 99); 7 Feb 2008 18:59:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 10:59:54 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO smtp-out.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 18:59:39 +0000 Received: from zps18.corp.google.com (zps18.corp.google.com [83.161.120.155]) by smtp-out.google.com with ESMTP id m17IsN1s009851 for <omiller@example.net>; Thu, 7 Feb 2008 18:54:24 GMT DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:message-id:date:from:to:subject:cc:mime-version: content-type:content-transfer-encoding:content-disposition; b=VwmxqcLPREB8hlVK2TJCMFqnnVJu3wK9UKOBbM+fh0dKyKu5VK8tKv+kLGOoTlBcy FDzJbgxQErXlSkqUd6b2g== Received: from py-out-1112.google.com (pyha78.prod.google.com [83.161.120.155]) by zps18.corp.google.com with ESMTP id m17IsMgO005162 for <omiller@example.net>; Thu, 7 Feb 2008 10:54:22 -0800 Received: by py-out-1112.google.com with SMTP id a78so4111221pyh.32 for <omiller@example.net>; Thu, 07 Feb 2008 10:54:21 -0800 (PST) Received: by 83.161.120.155 with SMTP id y2mr22359547qbp.83.1202410458963; Thu, 07 Feb 2008 10:54:18 -0800 (PST) Received: by 83.161.120.155 with HTTP; Thu, 7 Feb 2008 10:54:18 -0800 (PST) Message-ID: <omiller@example.net> Date: Thu, 7 Feb 2008 13:54:18 -0500 From: "Charles Fry" <omiller@example.net> To: omiller@example.net Subject: sending provisional response codes from a filter Cc: "Brian McBarron" <omiller@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi, We are working to prototype a protocol that requires multiple provisional response codes (103 in this case) to be sent to the client, serving as checkpoints for large client to server transfers. Being new to Apache module development, we are trying to determine the correct way to do this. So far I have an input filter which attempts to send a 103 by duplicating the code ti send 100s in modules/http/http_filters.c, and so far I've observed two types of unexpected behavior. First of all, the 103 turned into a 200 unless I added a new line for 103 to modules/http/http_protocol.c. So my first question is: is there a way to send 1xx response codes > 102 without modifying this? Second, even after adding 103s to http_protocol, and duplicating the 100 code from http_filters, the result was that rather than generating a 103 followed by the final response (200 in my tests), the the status code of the final response simply became 103. I'll continue reading through the code in my efforts to understand what is really going on, but I wanted to ping this list in case someone with deeper Apache understanding could help short-circuit my search. thanks, Charles From modules-devomiller@example.net Thu Feb 07 22:20:02 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 77167 invoked from network); 7 Feb 2008 22:20:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Feb 2008 22:20:02 -0000 Received: (qmail 83186 invoked by uid 500); 7 Feb 2008 22:19:54 -0000 Delivered-To: omiller@example.net Received: (qmail 83172 invoked by uid 500); 7 Feb 2008 22:19:54 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 83163 invoked by uid 99); 7 Feb 2008 22:19:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 14:19:53 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO smtp-out.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 22:19:38 +0000 Received: from zps78.corp.google.com (zps78.corp.google.com [83.161.120.155]) by smtp-out.google.com with ESMTP id m17MHvl7010029 for <omiller@example.net>; Thu, 7 Feb 2008 22:17:57 GMT DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:message-id:date:from:to:subject:cc:in-reply-to: mime-version:content-type:content-transfer-encoding: content-disposition:references; b=BrBL4FA6eT3gpZf4kmrsRQJjywUsODi9a6jTgoyOoKn1nen5YOIM23c2yJjCgaPp5 w9xsO5qZX5UPbukRpbA4Q== Received: from py-out-1112.google.com (pyia29.prod.google.com [83.161.120.155]) by zps78.corp.google.com with ESMTP id m17MFBEX001384 for <omiller@example.net>; Thu, 7 Feb 2008 14:17:56 -0800 Received: by py-out-1112.google.com with SMTP id a29so3606804pyi.0 for <omiller@example.net>; Thu, 07 Feb 2008 14:17:55 -0800 (PST) Received: by 83.161.120.155 with SMTP id d12mr22918874qbf.27.1202422673105; Thu, 07 Feb 2008 14:17:53 -0800 (PST) Received: by 83.161.120.155 with HTTP; Thu, 7 Feb 2008 14:17:53 -0800 (PST) Message-ID: <omiller@example.net> Date: Thu, 7 Feb 2008 17:17:53 -0500 From: "Charles Fry" <omiller@example.net> To: omiller@example.net Subject: Re: sending provisional response codes from a filter Cc: "Brian McBarron" <omiller@example.net> In-Reply-To: <omiller@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <omiller@example.net> X-Virus-Checked: Checked by ClamAV on apache.org I've made some progress in ruling out some false alarms that revelaed themselves initially. Specifically, the 103 I thought I was sending was just my addition of 103 to http_protocol.c working improperly (apparently even after httpd.h was updated, but nevermind that for now). In any case, my current filter simply execuites the following code, apparently to no avail: char *tmp; tmp = apr_pstrcat(f->r->pool, AP_SERVER_PROTOCOL, " ", "103 Checkpoint", CRLF CRLF, NULL); apr_brigade_cleanup(bb); e = apr_bucket_pool_create(tmp, strlen(tmp), f->r->pool, f->c->bucket_alloc); APR_BRIGADE_INSERT_HEAD(bb, e); e = apr_bucket_flush_create(f->c->bucket_alloc); APR_BRIGADE_INSERT_TAIL(bb, e); ap_pass_brigade(f->c->output_filters, bb); Does something else need to be done/happening to allow me to send a provisional response? This doesn't seem to work using ap_get_status_line(100) instead of "103 Checkpoint" either. Any thoughts or pointers would be appreciated. thanks, Charles On Feb 7, 2008 1:54 PM, Charles Fry <omiller@example.net> wrote: > Hi, > > We are working to prototype a protocol that requires multiple > provisional response codes (103 in this case) to be sent to the > client, serving as checkpoints for large client to server transfers. > Being new to Apache module development, we are trying to determine the > correct way to do this. So far I have an input filter which attempts > to send a 103 by duplicating the code ti send 100s in > modules/http/http_filters.c, and so far I've observed two types of > unexpected behavior. First of all, the 103 turned into a 200 unless I > added a new line for 103 to modules/http/http_protocol.c. So my first > question is: is there a way to send 1xx response codes > 102 without > modifying this? > > Second, even after adding 103s to http_protocol, and duplicating the > 100 code from http_filters, the result was that rather than generating > a 103 followed by the final response (200 in my tests), the the status > code of the final response simply became 103. > > I'll continue reading through the code in my efforts to understand > what is really going on, but I wanted to ping this list in case > someone with deeper Apache understanding could help short-circuit my > search. > > thanks, > Charles > From modules-devomiller@example.net Fri Feb 08 01:34:09 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 58344 invoked from network); 8 Feb 2008 01:34:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Feb 2008 01:34:09 -0000 Received: (qmail 97240 invoked by uid 500); 8 Feb 2008 01:34:01 -0000 Delivered-To: omiller@example.net Received: (qmail 97215 invoked by uid 500); 8 Feb 2008 01:34:01 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 97204 invoked by uid 99); 8 Feb 2008 01:34:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 17:34:01 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO Anchorfree.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 01:33:31 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C869F2.93460D6E" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: Pool child Date: Thu, 7 Feb 2008 17:31:53 -0800 Message-ID: <omiller@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Pool child Thread-Index: AchplRe4SoLtvOSOTiGwMQfs78OSZwAXUqPl References: <omiller@example.net> From: "Peter Belau" <omiller@example.net> To: <omiller@example.net>, <omiller@example.net> X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C869F2.93460D6E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 In my understanding r->pool lasts the duration of the request. As soon = as the request is finished the memory should be marked for cleanup. -----Original Message----- From: Marco Spinetti [mailto:omiller@example.net] Sent: Thu 2/7/2008 6:21 AM To: omiller@example.net Subject: Pool child =20 I have a question about the pool of the child r->pool. I'm using apache 2.2 with prefork and I set MaxRequestsPerChild 0 (so a=20 child should never dies). When my handler starts, I alloc all my needed memory from r->pool. When the handler finishes, the memory allocated from r->pool is free or = not? Because the child never dies, I'd like to know if I have to free=20 something or not. Best regards Marco ------_=_NextPart_001_01C869F2.93460D6E-- From modules-devomiller@example.net Fri Feb 08 03:24:41 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 99911 invoked from network); 8 Feb 2008 03:24:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Feb 2008 03:24:41 -0000 Received: (qmail 83553 invoked by uid 500); 8 Feb 2008 03:24:33 -0000 Delivered-To: omiller@example.net Received: (qmail 83531 invoked by uid 500); 8 Feb 2008 03:24:33 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 83522 invoked by uid 99); 8 Feb 2008 03:24:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 19:24:33 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO Anchorfree.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 03:24:03 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C86A02.0476671E" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Terminating a connection in mod_proxy Date: Thu, 7 Feb 2008 19:23:47 -0800 Message-ID: <omiller@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Terminating a connection in mod_proxy Thread-Index: AchqAgR0v0xqi5LeSzmIQzcjJUUsyw== From: "Peter Belau" <omiller@example.net> To: <omiller@example.net> X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C86A02.0476671E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm trying to figure out how I would send data back trough mod_proxy = based on a certain request. For instance: upon seeing a GET to = www.google.com, I'd like to return "Hello world" *without* the request = ever getting to www.google.com. Would anyone know how to do this ? Thanks, Peter ------_=_NextPart_001_01C86A02.0476671E-- From modules-devomiller@example.net Fri Feb 08 14:37:15 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 90407 invoked from network); 8 Feb 2008 14:37:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Feb 2008 14:37:15 -0000 Received: (qmail 79654 invoked by uid 500); 8 Feb 2008 14:37:07 -0000 Delivered-To: omiller@example.net Received: (qmail 79634 invoked by uid 500); 8 Feb 2008 14:37:06 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 79625 invoked by uid 99); 8 Feb 2008 14:37:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 06:37:06 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO grimnir.webthing.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 14:36:35 +0000 Received: from grimnir.webthing.com (localhost [83.161.120.155]) by grimnir.webthing.com (Postfix) with ESMTP id B9D7B2137 for <omiller@example.net>; Fri, 8 Feb 2008 14:36:40 +0000 (GMT) Date: Fri, 8 Feb 2008 14:36:40 +0000 From: Nick Kew <omiller@example.net> To: omiller@example.net Subject: Re: Terminating a connection in mod_proxy Message-ID: <20080208143640.33cd4bd8@grimnir> In-Reply-To: <omiller@example.net> References: <omiller@example.net> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 7 Feb 2008 19:23:47 -0800 "Peter Belau" <omiller@example.net> wrote: > > Hi, > > I'm trying to figure out how I would send data back trough mod_proxy > based on a certain request. For instance: upon seeing a GET to > www.google.com, I'd like to return "Hello world" *without* the > request ever getting to www.google.com. Would anyone know how to do > this ? For a reverse proxy, mod_rewrite. For a forward or transparent proxy, mod_security. Just create a ruleset to test whatever you want testing. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/ From modules-devomiller@example.net Fri Feb 08 15:17:03 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 78442 invoked from network); 8 Feb 2008 15:17:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Feb 2008 15:17:03 -0000 Received: (qmail 69519 invoked by uid 500); 8 Feb 2008 15:16:54 -0000 Delivered-To: omiller@example.net Received: (qmail 69497 invoked by uid 500); 8 Feb 2008 15:16:54 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 69488 invoked by uid 99); 8 Feb 2008 15:16:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 07:16:54 -0800 X-ASF-Spam-Status: No, hits=-0.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail14.messagelabs.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Feb 2008 15:16:38 +0000 X-VirusChecked: Checked X-Env-Sender: omiller@example.net X-Msg-Ref: server-9.tower-14.messagelabs.com!1202483791!34539669!1 X-StarScan-Version: 83.161.120.155.2; banners=-,-,- X-Originating-IP: [83.161.120.155] Received: (qmail 15737 invoked from network); 8 Feb 2008 15:16:31 -0000 Received: from unknown (HELO MSWRSLTSBNET002.ho.lloydstsb.co.uk) (83.161.120.155) by server-9.tower-14.messagelabs.com with SMTP; 8 Feb 2008 15:16:31 -0000 Received: from excrsltsbnet013.dc.lloydstsb.co.uk (excrsltsbnet013.lloydstsb.co.uk) by MSWRSLTSBNET002.ho.lloydstsb.co.uk (Content Technologies SMTPRS 4.3.14) with ESMTP id <omiller@example.net> for <omiller@example.net>; Fri, 8 Feb 2008 15:16:30 +0000 Received: by EXCRSLTSBNET013 with Internet Mail Service (5.5.2653.19) id <1FJ3JQTS>; Fri, 8 Feb 2008 15:16:32 -0000 Message-ID: <omiller@example.net> From: "Wall, Mick" <omiller@example.net> To: omiller@example.net Subject: Additional log file Date: Fri, 8 Feb 2008 15:16:28 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C86A65.9419034C" X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C86A65.9419034C Content-Type: text/plain Hello, I have a requirement to log some additional information to a separate log file. Can I do this using some of the existing log API's or will I need to create my own. Thanks Mick This e-mail is only for the above addressees. It may contain confidential or privileged information. If you are not an addressee you must not copy, distribute, disclose or use any of the information in it or any attachments. If you have received it in error please notify the sender and delete it immediately. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham & Gloucester plc are authorised and regulated by the Financial Services Authority. Lloyds TSB Group plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds TSB Group plc is a signatory to the Banking Codes. Telephone calls may be monitored or recorded. ------_=_NextPart_001_01C86A65.9419034C-- From modules-devomiller@example.net Fri Feb 08 15:27:53 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 81825 invoked from network); 8 Feb 2008 15:27:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Feb 2008 15:27:51 -0000 Received: (qmail 85750 invoked by uid 500); 8 Feb 2008 15:27:43 -0000 Delivered-To: omiller@example.net Received: (qmail 85723 invoked by uid 500); 8 Feb 2008 15:27:43 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 85714 invoked by uid 99); 8 Feb 2008 15:27:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 07:27:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rv-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 15:27:14 +0000 Received: by rv-out-0910.google.com with SMTP id l15so2304596rvb.24 for <omiller@example.net>; Fri, 08 Feb 2008 07:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=aGd4TL4j1jmlssr2JxZ9GU5pe6WLuqBVgc90QWgYj4g=; b=FTdmgHHCODxdM5LFuRKoPEa2lOHaji10EZx9AACE/7NrPvjCI2hl6duf78Kpluy5UP3GJCsi6eZLzbhY5eUPXRsaZl/Jib2S2kdJazKBy2+R8TQ2+oohX+gcNIYgPGnsoYeABdoQhy17PNbN6fMhM5bXexzyD+LPGih5zDbdagk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MiV6N5f4ypu5OtxymaygASFp3JEwjWUKDhD9WECi/R8DQy1m1QM8nQX3RSZyUlA0eIs3w/F+685/1IgTxEUCZ33t8mLkihhjB+UMNhvXAK/22Mn0xNxo53Mf1xXVW08wdY8EJEg1dvVBwYEuBw8+HbB7xByRjuJd/LmsZ8WUy+o= Received: by 83.161.120.155 with SMTP id b4mr3294337rvm.275.1202484439942; Fri, 08 Feb 2008 07:27:19 -0800 (PST) Received: by 83.161.120.155 with HTTP; Fri, 8 Feb 2008 07:27:19 -0800 (PST) Message-ID: <omiller@example.net> Date: Fri, 8 Feb 2008 10:27:19 -0500 From: "Eric Covener" <omiller@example.net> To: omiller@example.net Subject: Re: Additional log file In-Reply-To: <omiller@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <omiller@example.net> X-Virus-Checked: Checked by ClamAV on apache.org On Feb 8, 2008 10:16 AM, Wall, Mick <omiller@example.net> wrote: > Hello, > > I have a requirement to log some additional information to a separate log > file. Can I do this using some of the existing log API's or will I need to > create my own. If you can push the data into an environment variable (subprocess_env) or a note, you can just use an additional LogFormat/CustomLog to collect the data. -- Eric Covener omiller@example.net From modules-devomiller@example.net Fri Feb 08 15:40:22 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 88823 invoked from network); 8 Feb 2008 15:40:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Feb 2008 15:40:21 -0000 Received: (qmail 8615 invoked by uid 500); 8 Feb 2008 15:40:13 -0000 Delivered-To: omiller@example.net Received: (qmail 8596 invoked by uid 500); 8 Feb 2008 15:40:13 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 8587 invoked by uid 99); 8 Feb 2008 15:40:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 07:40:13 -0800 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 omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO skutsje.san.webweaving.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 15:39:57 +0000 Received: from [83.161.120.155] (5356CA0A.cable.casema.nl [83.161.120.155]) (authenticated bits=0) by skutsje.san.webweaving.org (8.12.9/8.12.9) with ESMTP id m18Fdh2Q076320 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for <omiller@example.net>; Fri, 8 Feb 2008 07:39:48 -0800 (PST) (envelope-from omiller@example.net) Message-Id: <omiller@example.net> From: Dirk-Willem van Gulik <omiller@example.net> To: omiller@example.net In-Reply-To: <omiller@example.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: Additional log file Date: Fri, 8 Feb 2008 16:39:42 +0100 References: <omiller@example.net> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 8, 2008, at 4:16 PM, Wall, Mick wrote: > I have a requirement to log some additional information to a > separate log > file. Can I do this using some of the existing log API's or will I > need to > create my own. If you have that data in env variables, in the notes table or similar (or you can get them there from your modules, mod_perl code) etc- then you can simple add a custom log and write it out that way: LogFormat "%a %s %t \"%{User-agent}i\"" %{GeoIP}n %{GeoIP_USfield}n % {GeoIP_SpeedField}n will extrat the note called 'GeoIP' from the r->notes table which was set by a module. If it comes from some java/backend - you can capture a header %{Foo}o header (but the client gets to see that header too). Dw From modules-devomiller@example.net Fri Feb 08 16:46:56 2008 Return-Path: <modules-devomiller@example.net> Delivered-To: omiller@example.net Received: (qmail 23511 invoked from network); 8 Feb 2008 16:46:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Feb 2008 16:46:55 -0000 Received: (qmail 12712 invoked by uid 500); 8 Feb 2008 16:46:48 -0000 Delivered-To: omiller@example.net Received: (qmail 12688 invoked by uid 500); 8 Feb 2008 16:46:48 -0000 Mailing-List: contact omiller@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:omiller@example.net> List-Unsubscribe: <mailto:omiller@example.net> List-Post: <mailto:omiller@example.net> List-Id: <modules-dev.httpd.apache.org> Reply-To: omiller@example.net Delivered-To: mailing list omiller@example.net Received: (qmail 12665 invoked by uid 99); 8 Feb 2008 16:46:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 08:46:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omiller@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO smtp-out.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 16:46:32 +0000 Received: from zps37.corp.google.com (zps37.corp.google.com [83.161.120.155]) by smtp-out.google.com with ESMTP id m18GkJPT015023 for <omiller@example.net>; Fri, 8 Feb 2008 16:46:20 GMT DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:message-id:date:from:to:subject:cc:in-reply-to: mime-version:content-type:content-transfer-encoding: content-disposition:references; b=CC6X+Y2q8L1oxyEhUvOYbdr/csyg754xlybsUQtNuw/F8yN2SjMpvwWa7Wc6cI/j2 mPvaOk31ErmmmMBJC1Ddw== Received: from rv-out-0910.google.com (rvbl15.prod.google.com [83.161.120.155]) by zps37.corp.google.com with ESMTP id m18GjeSl013225 for <omiller@example.net>; Fri, 8 Feb 2008 08:46:19 -0800 Received: by rv-out-0910.google.com with SMTP id l15so3826397rvb.44 for <omiller@example.net>;
{'source': 'Apache Software Foundation Public Mail Archives'}