Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-10-28 Thread Brian Akins
Can we get a vote on this? Jim gave it +1. So do I. I would like this to be in a beta release. This fix is important to our environment. [EMAIL PROTECTED] wrote: Jim Jagielski wrote: Sorry :) Thanks. So I guess this should be fine: Index: mod_proxy.c

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-10-28 Thread Brian Akins
Brian Akins wrote: Can we get a vote on this? Jim gave it +1. So do I. I would like this to be in a beta release. This fix is important to our environment. Never mind. See this in trunk... -- Brian Akins Lead Systems Engineer CNN Internet Technologies

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-10-28 Thread Ruediger Pluem
On 10/28/2005 03:46 PM, Brian Akins wrote: Brian Akins wrote: Can we get a vote on this? Jim gave it +1. So do I. I would like this to be in a beta release. This fix is important to our environment. Never mind. See this in trunk... It is also backported to 2.2.x. So it will be

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread Jim Jagielski
On Sep 28, 2005, at 5:09 PM, [EMAIL PROTECTED] wrote: Brian Akins wrote: Here is a trivial patch that will allow proxy_handler to run the request_status hook if pre_request fails. This is necessary if all balncer members are in an error state, so that other modules get a If all workers

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread r . pluem
Jim Jagielski wrote: On Sep 28, 2005, at 5:09 PM, [EMAIL PROTECTED] wrote: Brian Akins wrote: [..cut..] Hmmm... It might be best to, in ap_proxy_pre_request() set *balancer to NULL if the result from proxy_run_pre_request() isn't OK. Then we can call jump to cleanup. Yes, this

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread Brian Akins
Mladen Turk wrote: if (access_status != OK) { if (access_status != HTTP_SERVICE_UNAVAILABLE) return access_status; else goto cleanup; } I guess that makes sense. I just want to chatch the following cases: No available workers - all in error or busy worker failed - ie

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread Jim Jagielski
On Sep 29, 2005, at 9:40 AM, Brian Akins wrote: Mladen Turk wrote: if (access_status != OK) { if (access_status != HTTP_SERVICE_UNAVAILABLE) return access_status; else goto cleanup; } I guess that makes sense. I just want to chatch the following cases: No available

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread r . pluem
Jim Jagielski wrote: On Sep 29, 2005, at 9:40 AM, Brian Akins wrote: Mladen Turk wrote: if (access_status != OK) { if (access_status != HTTP_SERVICE_UNAVAILABLE) return access_status; else goto cleanup; } I guess that makes sense. I just want to chatch the

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread Brian Akins
Jim Jagielski wrote: This means if access_status is DECLINED, we would return. Would that work for you?? Yes. Just need to run request_status in case of error. -- Brian Akins Lead Systems Engineer CNN Internet Technologies

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread Jim Jagielski
Except for the formatting +1 :) On Sep 29, 2005, at 12:01 PM, [EMAIL PROTECTED] wrote: What about the following patch? I think it should address all the things discussed. Regards Rüdiger Index: mod_proxy.c === ---

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread r . pluem
As I try to improve my Apache code style awareness. What is wrong with the formatting? Regards Rüdiger Jim Jagielski wrote: Except for the formatting +1 :) On Sep 29, 2005, at 12:01 PM, [EMAIL PROTECTED] wrote: What about the following patch? I think it should address all the things

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread Jim Jagielski
Sorry :) The single line if statements. The pref is if (foo) banana(); rather than if (foo) banana(); On Sep 29, 2005, at 2:32 PM, [EMAIL PROTECTED] wrote: As I try to improve my Apache code style awareness. What is wrong with the formatting? Regards Rüdiger Jim

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread Sander Striker
[EMAIL PROTECTED] wrote: As I try to improve my Apache code style awareness. What is wrong with the formatting? http://httpd.apache.org/dev/styleguide.html The basic objection to your patch would be that statements after your if's; put them on the next line. HTH, Sander Regards

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-29 Thread r . pluem
Jim Jagielski wrote: Sorry :) Thanks. So I guess this should be fine: Index: mod_proxy.c === --- mod_proxy.c (Revision 280422) +++ mod_proxy.c (Arbeitskopie) @@ -679,8 +679,22 @@ char *url = uri; /* Try to

[PATCH] mod_proxy run cleanup on balancer failure

2005-09-28 Thread Brian Akins
Here is a trivial patch that will allow proxy_handler to run the request_status hook if pre_request fails. This is necessary if all balncer members are in an error state, so that other modules get a chance to recover from the error. In my case, I force the cache to serve old data. ---

Re: [PATCH] mod_proxy run cleanup on balancer failure

2005-09-28 Thread r . pluem
Brian Akins wrote: Here is a trivial patch that will allow proxy_handler to run the request_status hook if pre_request fails. This is necessary if all balncer members are in an error state, so that other modules get a If all workers are in error state, worker will be NULL. Are you sure that