How to add a cookie header in response headers when do external redirect?

2011-01-17 Thread Whut Jia
Hi, I want to save accessed uri into response cookie before doing a external redirect,according this way below: apr_table_setn(r-headers_out,Location,http://www.idp.com/login.jsp;); apr_table_setn(r-headers_out,Set-Cookie,r-uri); return HTTP_SEE_OTHER; But in client ,I cannot always find cookie

Re: How to add a cookie header in response headers when do external redirect?

2011-01-17 Thread Eric Covener
2011/1/17 Whut Jia whut_...@163.com: Hi, I want to save accessed uri into response cookie before doing a external redirect,according this way below:  apr_table_setn(r-headers_out,Location,http://www.idp.com/login.jsp;); apr_table_setn(r-headers_out,Set-Cookie,r-uri); return HTTP_SEE_OTHER;

Re: are the .exp files still needed?

2011-01-17 Thread William A. Rowe Jr.
On 1/16/2011 7:35 PM, Guenter Knauf wrote: Hi Jeff, currently we have 34 .exp files for modules in source tree which mostly you commited way back at 2.0.x start times for AIX - do you know if we still need them? If so we would probably need a bunch more since we have about 90+ modules now

Re: mod_ssl OCSP tuning (Re: TR of 2.3.10)

2011-01-17 Thread Joe Orton
On Sun, Jan 16, 2011 at 11:34:29AM +0100, Kaspar Brand wrote: On 13.12.2010 15:24, Jim Jagielski wrote: At this late in the game, I would prefer to do this post-2.3.10... safer that way. Polite reminder, according to [1]... :-) I feel it's important because it addresses PR 49784 and a few

Re: Prepare for large proxy commit...

2011-01-17 Thread Jim Jagielski
On Jan 17, 2011, at 2:23 AM, Ruediger Pluem wrote: On 01/15/2011 05:01 PM, Joe Orton wrote: On Wed, Jan 12, 2011 at 03:30:01PM -0500, Jim Jagielski wrote: My current migration of mod_proxy away from the scoreboard and to slotmem is done. All that remains is some final testing. This

Re: mod_ssl OCSP tuning (Re: TR of 2.3.10)

2011-01-17 Thread Steve Marquess
Joe Orton wrote: ... w.r.t. the change to skip OCSP validation for valid self-signed certs, I brought this up a while back: http://www.mail-archive.com/dev@httpd.apache.org/msg38849.html and Stephen said it probably be configurable. Has common practice evolved here such that hard-coding

Re: svn commit: r1059910 - in /httpd/httpd/trunk: CHANGES modules/ssl/ssl_engine_io.c

2011-01-17 Thread Graham Leggett
On 17 Jan 2011, at 3:14 PM, jor...@apache.org wrote: Author: jorton Date: Mon Jan 17 13:14:21 2011 New Revision: 1059910 URL: http://svn.apache.org/viewvc?rev=1059910view=rev Log: * modules/ssl/ssl_engine_io.c: Revamp output buffering: add a coalesce filter which buffers the plaintext, and

RE: Prepare for large proxy commit...

2011-01-17 Thread Plüm, Rüdiger, VF-Group
-Original Message- From: Jim Jagielski Sent: Montag, 17. Januar 2011 14:58 To: dev@httpd.apache.org Subject: Re: Prepare for large proxy commit... On Jan 17, 2011, at 2:23 AM, Ruediger Pluem wrote: On 01/15/2011 05:01 PM, Joe Orton wrote: On Wed, Jan 12, 2011 at

Re: mod_ssl OCSP tuning (Re: TR of 2.3.10)

2011-01-17 Thread Dr Stephen Henson
On 17/01/2011 13:39, Joe Orton wrote: On Sun, Jan 16, 2011 at 11:34:29AM +0100, Kaspar Brand wrote: On 13.12.2010 15:24, Jim Jagielski wrote: At this late in the game, I would prefer to do this post-2.3.10... safer that way. Polite reminder, according to [1]... :-) I feel it's important

Re: svn commit: r1059910 - in /httpd/httpd/trunk: CHANGES modules/ssl/ssl_engine_io.c

2011-01-17 Thread Joe Orton
On Mon, Jan 17, 2011 at 04:14:24PM +0200, Graham Leggett wrote: On 17 Jan 2011, at 3:14 PM, jor...@apache.org wrote: Author: jorton Date: Mon Jan 17 13:14:21 2011 New Revision: 1059910 URL: http://svn.apache.org/viewvc?rev=1059910view=rev Log: * modules/ssl/ssl_engine_io.c: Revamp

Startup crash for trunk on Solaris after proxy refactoring

2011-01-17 Thread Rainer Jung
Hi, I get a crash on Solaris Sparc during startup in the test suite after the proxy refactoring. Since it is a Bus error I wildly guess the root cause is an alignment issue in the shared memory. Sparc ist sensible to that and the only other Bus error or httpd I remember was wrong alignment

Re: Prepare for large proxy commit...

2011-01-17 Thread Rainer Jung
On 17.01.2011 08:23, Ruediger Pluem wrote: On 01/15/2011 05:01 PM, Joe Orton wrote: On Wed, Jan 12, 2011 at 03:30:01PM -0500, Jim Jagielski wrote: My current migration of mod_proxy away from the scoreboard and to slotmem is done. All that remains is some final testing. This will serve as

Test suite crash for trunk in mod_setenvif using trace8

2011-01-17 Thread Rainer Jung
It looks like a confusion between array and table: Program terminated with signal 11, Segmentation fault. #0 0xff032198 in strlen () from /lib/libc.so.1 (gdb) bt full #0 0xff032198 in strlen () from /lib/libc.so.1 No symbol table info available. #1 0xff3301ec in apr_array_pstrcat (p=0x5f0730,

Slotmem patch for alignment

2011-01-17 Thread Rainer Jung
Hi, I wrote a small patch fixing an alignment issue for mod_slotmem: http://people.apache.org/~rjung/patches/mod_slotmem_shm_alignment.patch The problem is: mod_slotmem uses a header for meta data before the actual data slots. The addresses used for the data slots are offset by the size of

Startup ordering between proxy and slotmem

2011-01-17 Thread Rainer Jung
I think slotmem is only a dependency for mod_proxy_balancer, not mod_proxy itself, so it seems safe (and more correct) to move the aszPred entry from mod_proxy.c to mod_proxy_balancer.c: http://people.apache.org/~rjung/patches/mod_proxy-slotmem-order.patch OK?

Re: Startup crash for trunk on Solaris after proxy refactoring

2011-01-17 Thread Rainer Jung
On 17.01.2011 15:45, Rainer Jung wrote: Hi, I get a crash on Solaris Sparc during startup in the test suite after the proxy refactoring. Since it is a Bus error I wildly guess the root cause is an alignment issue in the shared memory. Sparc ist sensible to that and the only other Bus error or

Re: Startup ordering between proxy and slotmem

2011-01-17 Thread Jim Jagielski
Makes sense. On Jan 17, 2011, at 12:56 PM, Rainer Jung wrote: I think slotmem is only a dependency for mod_proxy_balancer, not mod_proxy itself, so it seems safe (and more correct) to move the aszPred entry from mod_proxy.c to mod_proxy_balancer.c:

Re: Slotmem patch for alignment

2011-01-17 Thread Jim Jagielski
On Jan 17, 2011, at 12:51 PM, Rainer Jung wrote: Hi, I wrote a small patch fixing an alignment issue for mod_slotmem: http://people.apache.org/~rjung/patches/mod_slotmem_shm_alignment.patch The problem is: mod_slotmem uses a header for meta data before the actual data slots. The

Re: Startup crash for trunk on Solaris after proxy refactoring

2011-01-17 Thread Jim Jagielski
On Jan 17, 2011, at 12:59 PM, Rainer Jung wrote: On 17.01.2011 15:45, Rainer Jung wrote: Hi, I get a crash on Solaris Sparc during startup in the test suite after the proxy refactoring. Since it is a Bus error I wildly guess the root cause is an alignment issue in the shared memory. Sparc

Re: non thread safe functions used in apache httpd project

2011-01-17 Thread Nick Kew
On 12 Jan 2011, at 10:29, Kevin J Walters wrote: Hi, I picked this up when you reported it in bugzilla. One feature of the apache way of working is that no individual developer 'owns' your question (unless you pay someone for support), so it risks going unanswered. Whilst looking at a thread

Re: Test suite crash for trunk in mod_setenvif using trace8

2011-01-17 Thread Stefan Fritsch
On Mon, 17 Jan 2011, Rainer Jung wrote: It looks like a confusion between array and table: Program terminated with signal 11, Segmentation fault. #0 0xff032198 in strlen () from /lib/libc.so.1 (gdb) bt full Thanks for the pointer. Fixed in r1060072

Weird weirdness with %lld and apr_psprintf

2011-01-17 Thread Jim Jagielski
OK, I was getting some weird weird errors with the byterange tests for httpd... it was always failing. Looking over the output, what I was seeing is that the output was sending out, well... see the below: # Failed test 149 in t/apache/byterange.t at line 52 fail #149 Range: bytes=0-8192

Re: Weird weirdness with %lld and apr_psprintf

2011-01-17 Thread Jim Jagielski
I think it is related to OS X and vformatter: if ((sizeof(APR_INT64_T_FMT) == 4 fmt[0] == APR_INT64_T_FMT[0] fmt[1] == APR_INT64_T_FMT[1]) || (sizeof(APR_INT64_T_FMT) == 3 fmt[0] == APR_INT64_T_FMT[0]) ||

Re: Weird weirdness with %lld and apr_psprintf

2011-01-17 Thread Jim Jagielski
Fixed in r1060104/1060105/1060106 On Jan 17, 2011, at 4:24 PM, Jim Jagielski wrote: I think it is related to OS X and vformatter: if ((sizeof(APR_INT64_T_FMT) == 4 fmt[0] == APR_INT64_T_FMT[0] fmt[1] == APR_INT64_T_FMT[1]) ||

Re: svn commit: r1059910 - in /httpd/httpd/trunk: CHANGES modules/ssl/ssl_engine_io.c

2011-01-17 Thread Graham Leggett
On 17 Jan 2011, at 4:35 PM, Joe Orton wrote: Is this not a duplicate of the BUFFER filter in mod_buffer? Ah, I forgot that was in the tree. It is similar, but that's a content filter which requires manual user configuration, this is a connection-level filter which does not. Yes, it would

Possible crash in mod_cgid (logging crashes because of NULL s-module_config)

2011-01-17 Thread Rainer Jung
I did a broken build using a SHELL_PATH that was not available on the build platform. The test suite tried to log exec of 'echo pass' failed in test number 16 of t/modules/include.t (line 261). This produced a crash. It seems the crash will happen every time and exec include fails. The

Re: millisecond timeouts in mod_proxy mod_proxy_http

2011-01-17 Thread Neal Richter
How can I help clean it up? Are there other places where we can add ms timing support? The custom error-documents and status have been great for restful services where we wanted zero proxy errors returned to the client. Thanks - Neal On 1/15/11, Daniel Ruggeri drugg...@primary.net wrote: On