Re: stop copying footers to r-headers_in?

2014-07-15 Thread Eric Covener
Candidate patch uses %I and %O but they are used by mod_logio. It is hard to find two good unused characters. What do people think about allowing two-character log formats? I think patch below only breaks someone who had a %XX where XX is a registered two digit tag and they expect the 1 char +

Re: stop copying footers to r-headers_in?

2014-07-15 Thread Eric Covener
something odd in proxy path when backend has #0 0x7f16f51b92e1 in apr_table_clear (t=0x0) at tables/apr_tables.c:467 467 t-a.nelts = 0; (gdb) where #0 0x7f16f51b92e1 in apr_table_clear (t=0x0) at tables/apr_tables.c:467 #1 0x00483bfc in read_chunked_trailers

RE: stop copying footers to r-headers_in?

2014-07-15 Thread Plüm , Rüdiger , Vodafone Group
); rp-notes = apr_table_make(pool, 5); rp-server = r-server; Regards Rüdiger -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Dienstag, 15. Juli 2014 16:02 To: Apache HTTP Server Development List Subject: Re: stop copying footers to r

Re: stop copying footers to r-headers_in?

2014-07-15 Thread Eric Covener
-Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Dienstag, 15. Juli 2014 16:02 To: Apache HTTP Server Development List Subject: Re: stop copying footers to r-headers_in? something odd in proxy path when backend has -- Eric Covener cove...@gmail.com

RE: stop copying footers to r-headers_in?

2014-07-15 Thread Plüm , Rüdiger , Vodafone Group
-Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Dienstag, 15. Juli 2014 15:25 To: Apache HTTP Server Development List Subject: Re: stop copying footers to r-headers_in? Candidate patch uses %I and %O but they are used by mod_logio. It is hard to find two

Re: stop copying footers to r-headers_in?

2014-07-15 Thread Jim Jagielski
On Jul 15, 2014, at 10:38 AM, Plüm, Rüdiger, Vodafone Group ruediger.pl...@vodafone.com wrote: -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Dienstag, 15. Juli 2014 15:25 To: Apache HTTP Server Development List Subject: Re: stop copying footers to r

Re: stop copying footers to r-headers_in?

2014-07-15 Thread Eric Covener
On Tue, Jul 15, 2014 at 10:38 AM, Plüm, Rüdiger, Vodafone Group ruediger.pl...@vodafone.com wrote: Is there a way for people with such a setup to fix this with a different config? From the top of my head I would say no and that would be a blocker. Do you think the required '^' prefix in the

RE: stop copying footers to r-headers_in?

2014-07-15 Thread Plüm , Rüdiger , Vodafone Group
-Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Dienstag, 15. Juli 2014 16:52 To: Apache HTTP Server Development List Subject: Re: stop copying footers to r-headers_in? On Tue, Jul 15, 2014 at 10:38 AM, Plüm, Rüdiger, Vodafone Group ruediger.pl

Re: stop copying footers to r-headers_in?

2014-07-15 Thread Eric Covener
On Tue, Jul 15, 2014 at 10:56 AM, Plüm, Rüdiger, Vodafone Group ruediger.pl...@vodafone.com wrote: -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Dienstag, 15. Juli 2014 16:52 To: Apache HTTP Server Development List Subject: Re: stop copying footers to r

RE: stop copying footers to r-headers_in?

2014-07-15 Thread Plüm , Rüdiger , Vodafone Group
-Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Dienstag, 15. Juli 2014 17:02 To: Apache HTTP Server Development List Subject: Re: stop copying footers to r-headers_in? On Tue, Jul 15, 2014 at 10:56 AM, Plüm, Rüdiger, Vodafone Group ruediger.pl

Re: stop copying footers to r-headers_in?

2014-07-15 Thread Eric Covener
On Tue, Jul 15, 2014 at 11:07 AM, Plüm, Rüdiger, Vodafone Group ruediger.pl...@vodafone.com wrote: This should work. But don't you need to register then ^Ti instead of Ti? yeah, it needs to be registered and used in httpd.conf w/ the ^ -- Eric Covener cove...@gmail.com

RE: stop copying footers to r-headers_in?

2014-07-15 Thread Houser, Rick
Rick Houser Web Administration (517)367-3516 -Original Message- From: Plüm, Rüdiger, Vodafone Group [mailto:ruediger.pl...@vodafone.com] Sent: Tuesday, July 15, 2014 10:56 AM To: dev@httpd.apache.org Subject: RE: stop copying footers to r-headers_in? -Original Message

Re: stop copying footers to r-headers_in?

2014-07-15 Thread Tim Bannister
On 15 Jul 2014, at 15:38, Rüdiger Plüm ruediger.pl...@vodafone.com wrote: -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Dienstag, 15. Juli 2014 15:25 To: Apache HTTP Server Development List Subject: Re: stop copying footers to r-headers_in? What do people

Re: stop copying footers to r-headers_in?

2014-06-25 Thread Edward Lu
Wanted to follow up on this thread again; here's my latest patch on 2.2.x that takes some ideas from Joe's patch. I also merge the trailers into the headers after reading them now, instead of directly appending them into the headers. I will leave the PROXYREQ_RESPONSE case to someone else, as I

Re: stop copying footers to r-headers_in?

2014-06-25 Thread Edward Lu
Patch for trunk as well On Wed, Jun 25, 2014 at 1:20 PM, Edward Lu chaos...@gmail.com wrote: Wanted to follow up on this thread again; here's my latest patch on 2.2.x that takes some ideas from Joe's patch. I also merge the trailers into the headers after reading them now, instead of

Re: stop copying footers to r-headers_in?

2014-05-16 Thread Edward Lu
Added mod_log_config changes; I used O and I for the format letters. Not sure if there are letters that might be more preferred. On Fri, May 9, 2014 at 11:01 AM, Edward Lu chaos...@gmail.com wrote: Here's a 2.2.x backport of Yann's patch with a directive, MergeTrailers, added in to opt-in to

Re: stop copying footers to r-headers_in?

2014-05-16 Thread Yann Ylavic
I did not realize your mail is 8 days old, I just received it -- gmail is having fun these days :( Sorry for this misunderstanding and the reply that goes along... Regards, Yann.

Re: stop copying footers to r-headers_in?

2014-05-16 Thread Joe Orton
On Tue, May 06, 2014 at 07:45:42PM -0400, Eric Covener wrote: On Tue, May 6, 2014 at 6:44 PM, Yann Ylavic ylavic@gmail.com wrote: This patch (still) does not propose to merge splitted trailers into headers (for those broken by the change), but when (and why) would we do that? For

Re: stop copying footers to r-headers_in?

2014-05-16 Thread Yann Ylavic
On Wed, May 7, 2014 at 11:47 AM, Joe Orton jor...@redhat.com wrote: I hacked the attached up yesterday, before seeing Yann's mail, untested. The patch looks good (against 2.4.x), but as I said to Edward, I think r-status should be restored (at least, error-notes probably too) when r-proxyreq ==

Re: stop copying footers to r-headers_in?

2014-05-15 Thread Yann Ylavic
On Mon, May 12, 2014 at 7:03 PM, Edward Lu chaos...@gmail.com wrote: Both the things you caught were probably just errors I made in manually merging the patch into 2.2.x; here's a revised version, just in case. Looks good, but you did not address Eric's comment about parsing the trailers

Re: stop copying footers to r-headers_in?

2014-05-13 Thread Jim Jagielski
On May 6, 2014, at 7:45 PM, Eric Covener cove...@gmail.com wrote: On Tue, May 6, 2014 at 6:44 PM, Yann Ylavic ylavic@gmail.com wrote: On Tue, May 6, 2014 at 1:41 PM, Eric Covener cove...@gmail.com wrote: I'd really like to start chucking trailers, but the scale of these patches really

Re: stop copying footers to r-headers_in?

2014-05-12 Thread Edward Lu
Both the things you caught were probably just errors I made in manually merging the patch into 2.2.x; here's a revised version, just in case. Thanks for the review. I'm not really clear on the error-notes discussion. It makes sense that we wouldn't care too much if we don't save the ones from

Re: stop copying footers to r-headers_in?

2014-05-11 Thread Edward Lu
Here's a 2.2.x backport of Yann's patch with a directive, MergeTrailers, added in to opt-in to the old behavior. By default, it doesn't merge the trailers. I'm working on adding the capability to mod_log_config to log the trailers, but I figured I'd post this patch first to get some review. - Ed

Re: stop copying footers to r-headers_in?

2014-05-11 Thread Eric Covener
On Wed, May 7, 2014 at 6:35 AM, Ruediger Pluem rpl...@apache.org wrote: Configurable by an option? If yes, what is the default behaviour? my 2 cents: Default, collect them in r-trailers_in where not much can be done with them. With a directive, restore the tricky historical behavior (append them

Re: stop copying footers to r-headers_in?

2014-05-11 Thread Yann Ylavic
On Fri, May 9, 2014 at 5:01 PM, Edward Lu chaos...@gmail.com wrote: Here's a 2.2.x backport of Yann's patch with a directive, MergeTrailers, added in to opt-in to the old behavior. By default, it doesn't merge the trailers. I'm working on adding the capability to mod_log_config to log the

Re: stop copying footers to r-headers_in?

2014-05-11 Thread Yann Ylavic
On Sun, May 11, 2014 at 6:35 PM, Yann Ylavic ylavic@gmail.com wrote: Restoring the status and notes (set before the body is read) seems unconditional to me. Well, actually I'm not really sure whether we should preserve or overwritte the error-notes here. In most cases (but

Re: stop copying footers to r-headers_in?

2014-05-10 Thread Ruediger Pluem
Eric Covener wrote: On Tue, May 6, 2014 at 6:44 PM, Yann Ylavic ylavic@gmail.com wrote: On Tue, May 6, 2014 at 1:41 PM, Eric Covener cove...@gmail.com wrote: I'd really like to start chucking trailers, but the scale of these patches really frightens me for 2.4 and 2.2 and accompanying

Re: stop copying footers to r-headers_in?

2014-05-06 Thread Eric Covener
I'd really like to start chucking trailers, but the scale of these patches really frightens me for 2.4 and 2.2 and accompanying what will likely be a security roll-up. Is anyone sitting on a more tactical version of the fix?

Re: stop copying footers to r-headers_in?

2014-05-06 Thread Yann Ylavic
On Tue, May 6, 2014 at 1:41 PM, Eric Covener cove...@gmail.com wrote: I'd really like to start chucking trailers, but the scale of these patches really frightens me for 2.4 and 2.2 and accompanying what will likely be a security roll-up. Understood. Is anyone sitting on a more tactical

Re: stop copying footers to r-headers_in?

2014-05-06 Thread Eric Covener
On Tue, May 6, 2014 at 6:44 PM, Yann Ylavic ylavic@gmail.com wrote: On Tue, May 6, 2014 at 1:41 PM, Eric Covener cove...@gmail.com wrote: I'd really like to start chucking trailers, but the scale of these patches really frightens me for 2.4 and 2.2 and accompanying what will likely be a

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Eric Covener
Resurrecting this thread. Yann, anything holding this one back? On Mon, Oct 28, 2013 at 9:43 AM, Yann Ylavic ylavic@gmail.com wrote: The declaration of ap_get_mime_headers_from() is falsy in the previous patch, you should read instead : +AP_DECLARE(apr_status_t)

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Yann Ylavic
Sorry I stopped this along the way... IIRC, my latest patch (not posted yet) does all the necessary in ap_rgetline_ex() and ap_get_mime_headers_ex() (ie. parameters for the input filter to read from and handling of the blocking mode), parses the trailers in ap_http_filter() where they are read,

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Yann Ylavic
On Tue, Apr 1, 2014 at 8:00 PM, Yann Ylavic ylavic@gmail.com wrote: +static int parse_mime_headers(request_rec *r, + apr_bucket_brigade *bb, + apr_read_type_e block, + ap_filter_t *f, apr_table_t *t, +

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Eric Covener
On Tue, Apr 1, 2014 at 2:00 PM, Yann Ylavic ylavic@gmail.com wrote: Here is the corresponding patch. I don't know if it's your mail client or mine (gmail), your patches always come through as both an attachment and in the body. Usually for anything more than a few lines, attachment-only is

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Mike Rumph
Hello Yann, Comment included below. Thanks, Mike Rumph On 4/1/2014 11:00 AM, Yann Ylavic wrote: Index: modules/examples/mod_example_hooks.c === --- modules/examples/mod_example_hooks.c(revision 1583714) +++

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Yann Ylavic
On Tue, Apr 1, 2014 at 8:36 PM, Eric Covener cove...@gmail.com wrote: On Tue, Apr 1, 2014 at 2:00 PM, Yann Ylavic ylavic@gmail.com wrote: Here is the corresponding patch. I don't know if it's your mail client or mine (gmail), your patches always come through as both an attachment and

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Yann Ylavic
Hi Mike, On Tue, Apr 1, 2014 at 9:21 PM, Mike Rumph mike.ru...@oracle.com wrote: Comment included below. On 4/1/2014 11:00 AM, Yann Ylavic wrote: Index: modules/examples/mod_example_hooks.c === ---

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Yann Ylavic
On Tue, Apr 1, 2014 at 8:00 PM, Yann Ylavic ylavic@gmail.com wrote: Here is the corresponding patch. +static int parse_mime_headers(request_rec *r, + apr_bucket_brigade *bb, + apr_read_type_e block, +

Re: stop copying footers to r-headers_in?

2014-04-01 Thread Yann Ylavic
On Tue, Apr 1, 2014 at 11:35 PM, Yann Ylavic ylavic@gmail.com wrote: On Tue, Apr 1, 2014 at 8:36 PM, Eric Covener cove...@gmail.com wrote: Can you say roughly how much it has changed, I was largely through a review of the previous patch. Actually, aside from funcs/vars/params renaming,

Re: stop copying footers to r-headers_in?

2013-10-28 Thread Yann Ylavic
The declaration of ap_get_mime_headers_from() is falsy in the previous patch, you should read instead : +AP_DECLARE(apr_status_t) +ap_get_mime_headers_from(request_rec *r, apr_bucket_brigade *bb, + ap_filter_t *from, apr_read_type_e block, +

Re: stop copying footers to r-headers_in?

2013-10-27 Thread Eric Covener
On Tue, Oct 22, 2013 at 2:18 PM, Yann Ylavic ylavic@gmail.com wrote: -AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb) +struct ap_mime_headers_ctx_t { +int fields_read; +char *last_field; +apr_size_t last_len; +apr_size_t alloc_len; +

Re: stop copying footers to r-headers_in?

2013-10-27 Thread Yann Ylavic
On Mon, Oct 28, 2013 at 2:23 AM, Eric Covener cove...@gmail.com wrote: On Tue, Oct 22, 2013 at 2:18 PM, Yann Ylavic ylavic@gmail.com wrote: -AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb) +struct ap_mime_headers_ctx_t { +int fields_read; +

Re: stop copying footers to r-headers_in?

2013-10-25 Thread Yann Ylavic
On Thu, Oct 24, 2013 at 7:42 PM, Eric Covener cove...@gmail.com wrote: On Wed, Oct 23, 2013 at 8:04 AM, Yann Ylavic ylavic@gmail.com wrote: 1) add r-footers_in and use it in 2.2 and up by default Do that mean no API/ABI change ? In the sense that it needs to be backportable, yes -- but

Re: stop copying footers to r-headers_in?

2013-10-25 Thread Eric Covener
On Fri, Oct 25, 2013 at 9:12 AM, Yann Ylavic ylavic@gmail.com wrote: On Thu, Oct 24, 2013 at 7:42 PM, Eric Covener cove...@gmail.com wrote: On Wed, Oct 23, 2013 at 8:04 AM, Yann Ylavic ylavic@gmail.com wrote: 1) add r-footers_in and use it in 2.2 and up by default Do that mean no

Re: stop copying footers to r-headers_in?

2013-10-24 Thread Eric Covener
On Wed, Oct 23, 2013 at 8:04 AM, Yann Ylavic ylavic@gmail.com wrote: Should I continue this way? Simply to propose patches? Sorry for not following up earlier. The patches are very much appreciated. But bite-sized ones are much easier for others to review. This might often mean fixing the

Re: stop copying footers to r-headers_in?

2013-10-23 Thread Yann Ylavic
Should I continue this way? Simply to propose patches? On Sat, Oct 19, 2013 at 4:13 PM, Eric Covener cove...@gmail.com wrote: Currently, when the body is consumed by a handler, a side effect is reading footers that might be present and copying them to r-headers_in. This presents a series of

Re: stop copying footers to r-headers_in?

2013-10-21 Thread Joe Orton
On Sat, Oct 19, 2013 at 10:13:21AM -0400, Eric Covener wrote: now: 1) add r-footers_in and use it in 2.2 and up by default 2) add a directive to copy them up to r-headers_in (for those broken by the change) Bikeshed... r-trailers_in? +1 to all this anyway. I'd be tempted to (lazily) stop

RE: stop copying footers to r-headers_in?

2013-10-21 Thread Plüm , Rüdiger , Vodafone Group
-Original Message- From: Joe Orton Sent: Montag, 21. Oktober 2013 17:09 To: dev@httpd.apache.org Subject: Re: stop copying footers to r-headers_in? On Sat, Oct 19, 2013 at 10:13:21AM -0400, Eric Covener wrote: now: 1) add r-footers_in and use it in 2.2 and up by default

Re: stop copying footers to r-headers_in?

2013-10-21 Thread Graham Leggett
On 21 Oct 2013, at 5:20 PM, Plüm, Rüdiger, Vodafone Group ruediger.pl...@vodafone.com wrote: Bikeshed... r-trailers_in? +1 to all this anyway. I'd be tempted to (lazily) stop here to see whether any users actually care about trailers. It looks like a pain to thread this change through both

Re: stop copying footers to r-headers_in?

2013-10-21 Thread Jim Jagielski
On Oct 21, 2013, at 11:37 AM, Graham Leggett minf...@sharp.fm wrote: On 21 Oct 2013, at 5:20 PM, Plüm, Rüdiger, Vodafone Group ruediger.pl...@vodafone.com wrote: Bikeshed... r-trailers_in? +1 to all this anyway. I'd be tempted to (lazily) stop here to see whether any users actually care

Re: stop copying footers to r-headers_in?

2013-10-20 Thread Ruediger Pluem
Sounds like a good plan. Regards Rüdiger Eric Covener wrote: Currently, when the body is consumed by a handler, a side effect is reading footers that might be present and copying them to r-headers_in. This presents a series of problems. * things that inspect r-headers_in expect it to