Re: output filter needs to redirect to 503 error status

2014-10-16 Thread Nick Kew
On Thu, 16 Oct 2014 09:36:19 -0400 "Eric Johanson" wrote: > My output filter hooked function is defined as follows: >apr_status_t mts_out_filter(ap_filter_t *f,apr_bucket_brigade *bb) > > I need this function to "do something" that causes the whole request to be > redirected such that th

Re: output filter needs to redirect to 503 error status

2014-10-16 Thread Sorin Manolache
On 2014-10-16 22:35, Eric Johanson wrote: Thank you for the suggestion. I did try that, but the order in which you set f->r->status and call ap_pass_brigade doesn't seem to really make a difference. Basically what happens is that the browsers don't like the format of the HTTP response packet.

RE: output filter needs to redirect to 503 error status

2014-10-16 Thread Eric Johanson
Thank you for the suggestion. I did try that, but the order in which you set f->r->status and call ap_pass_brigade doesn't seem to really make a difference. Basically what happens is that the browsers don't like the format of the HTTP response packet. They complain that there is "extra unexpecte

Re: output filter needs to redirect to 503 error status

2014-10-16 Thread Sorin Manolache
On 2014-10-16 15:36, Eric Johanson wrote: Hi, I have an output filter module which is working just fine, but I need to add a feature so that when certain error conditions occur during processing, the output filter hook function redirects the whole request to a 503 error status (service unavailabl

output filter needs to redirect to 503 error status

2014-10-16 Thread Eric Johanson
Hi, I have an output filter module which is working just fine, but I need to add a feature so that when certain error conditions occur during processing, the output filter hook function redirects the whole request to a 503 error status (service unavailable). Obviously for a "handler" module this i