Examining per_dir_config for a module

2007-04-12 Thread Saju Pillai
Greetings, I am attempting to write a apache 2.2 module that has per dir/location directives. I need to examine all the per dir/location module_config's for this mod. Can I do something like ... for (server = base_server; server; server = server-next) { conf =

Re: listener from a conn_rec?

2007-04-12 Thread Issac Goldstand
While working on some UDP-related issues a while back, I looked into this a bit. IIRC, I found that there is no way to do this (and intentionally so) from the conn_rec. The socket itself is accessible, but not in the public API (and possibly not in a platform independent manner either). Issac

Re: Examining per_dir_config for a module

2007-04-12 Thread David Wortham
SRP, If I am correct, that will work if you only need to look at only server/vhost cfg structures (won't work for directory, location, files, or .htaccess directives). My recommendation is to log (or otherwise write to a file or multiple files) all of your dir_cfg data either when you do

read POST body

2007-04-12 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi group! For mod_auth_openpgp I need to read the POST body. During my research (googling, archives of this list, apache.org, etc) I discovered three methods so far. I would like your opinions on the safest one, fastest one, if should DECHUNK,

Re: Examining per_dir_config for a module

2007-04-12 Thread Joe Lewis
David Wortham wrote: SRP, If I am correct, that will work if you only need to look at only server/vhost cfg structures (won't work for directory, location, files, or .htaccess directives). I believe that is correct. When I created a logging module to check which hooks were being called

Re: Examining per_dir_config for a module

2007-04-12 Thread David Wortham
SRP, I am dealing with the same issue (debugging dir_cfg data) today in fact, so you may be able to benefit from my debugging method. From my experience: you are correct about the timing involved in the creation of dir_cfgs (they are created and merged at the beginning of a request). If

Re: read POST body

2007-04-12 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Graham Dumpleton wrote: Again, this is my understanding from studying code and reading different bits and pieces, so someone correct me if I am wrong. Confirmation from someone that this is correct would also be appreciated. Graham:

Re: read POST body

2007-04-12 Thread Graham Dumpleton
On 13/04/07, Graham Dumpleton [EMAIL PROTECTED] wrote: On 13/04/07, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi group! For mod_auth_openpgp I need to read the POST body. During my research (googling, archives of this list,

Re: ProxyErrorOverride and redirects (PR 39245)

2007-04-12 Thread Jeff Trawick
On 4/9/07, Nick Kew [EMAIL PROTECTED] wrote: On Mon, 9 Apr 2007 11:08:55 -0400 Jeff Trawick [EMAIL PROTECTED] wrote: On 4/5/07, Nick Kew [EMAIL PROTECTED] wrote: On Thu, 5 Apr 2007 10:04:19 +0100 Joe Orton [EMAIL PROTECTED] wrote: I agree that the intended behaviour of the original

Re: ProxyErrorOverride and redirects (PR 39245)

2007-04-12 Thread Joe Orton
On Thu, Apr 12, 2007 at 10:05:06AM -0400, Jeff Trawick wrote: I wonder why Error in ProxyErrorOverride doesn't match the meaning of ap_is_HTTP_ERROR(), as in the attached patch (with doc). Great, +1 1xx isn't something the user should see/react to either. Forwarding 1xx responses is actually

Re: svn commit: r527969 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_proxy.xml modules/proxy/mod_proxy_http.c

2007-04-12 Thread Ruediger Pluem
On 04/12/2007 05:07 PM, [EMAIL PROTECTED] wrote: Author: trawick Date: Thu Apr 12 08:07:11 2007 New Revision: 527969 URL: http://svn.apache.org/viewvc?view=revrev=527969 Log: HTTP proxy ProxyErrorOverride: Leave 1xx and 3xx responses alone. Only processing of error responses (4xx, 5xx)

Re: listener from a conn_rec?

2007-04-12 Thread Tyler MacDonald
Here's what I came up with... of course, it falls apart as soon as you have more than one protocol on the same port (maybe with different bind addresses or whatever), but doing that is a bad idea anyways, isn't it? :-) static const char* what_protocol_am_i(conn_rec* c) { apr_port_t port =

Re: svn commit: r527969 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_proxy.xml modules/proxy/mod_proxy_http.c

2007-04-12 Thread Jeff Trawick
On 4/12/07, Ruediger Pluem [EMAIL PROTECTED] wrote: On 04/12/2007 05:07 PM, [EMAIL PROTECTED] wrote: Author: trawick Date: Thu Apr 12 08:07:11 2007 New Revision: 527969 URL: http://svn.apache.org/viewvc?view=revrev=527969 Log: HTTP proxy ProxyErrorOverride: Leave 1xx and 3xx responses

listener from a conn_rec?

2007-04-12 Thread Tyler MacDonald
Given a connection record, how do I determine what listener originally accepted the connection? I've dug around the API documentation a bit and can't find a clear path back to my listener or a protocol from a connection. A connection should really know what protocol it's supposed to speak,

Re: mod_proxy buffering small chunks

2007-04-12 Thread Jim Jagielski
On Apr 11, 2007, at 3:34 PM, Ruediger Pluem wrote: On 04/11/2007 06:42 PM, Filipe wrote: I'm trying to use apache to proxy a push application, using chunked transfer encoding. The problem is that the mod_proxy buffers the server response internally and only sends the data to the client

Re: ProxyErrorOverride and redirects (PR 39245)

2007-04-12 Thread Jim Jagielski
On Apr 12, 2007, at 10:16 AM, Joe Orton wrote: On Thu, Apr 12, 2007 at 10:05:06AM -0400, Jeff Trawick wrote: I wonder why Error in ProxyErrorOverride doesn't match the meaning of ap_is_HTTP_ERROR(), as in the attached patch (with doc). Great, +1 1xx isn't something the user should

Re: read POST body

2007-04-12 Thread Graham Dumpleton
On 13/04/07, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi group! For mod_auth_openpgp I need to read the POST body. During my research (googling, archives of this list, apache.org, etc) I discovered three methods so far. I would like

Re: svn commit: r527969 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_proxy.xml modules/proxy/mod_proxy_http.c

2007-04-12 Thread Ruediger Pluem
On 04/12/2007 10:20 PM, Jeff Trawick wrote: On 4/12/07, Ruediger Pluem [EMAIL PROTECTED] wrote: On 04/12/2007 05:07 PM, [EMAIL PROTECTED] wrote: Author: trawick Date: Thu Apr 12 08:07:11 2007 New Revision: 527969 URL: http://svn.apache.org/viewvc?view=revrev=527969 Log: HTTP

Re: mod_proxy buffering small chunks

2007-04-12 Thread Mladen Turk
Jim Jagielski wrote: This is only fixed in trunk so far. See http://issues.apache.org/bugzilla/show_bug.cgi?id=41056 and http://svn.apache.org/viewvc?view=revrevision=480135 Hmmm. Looks like a backport candidate... I'll likely do some testing and propose if it works :) I have another