ASF Bugzilla – Attachment 24189 Details for
Bug 47063
mod_proxy doesn't call post_request handler when the worker returned by pre_request is unusable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix this problem with another approach
mod_proxy_balancer-reset_busyness.patch (text/plain), 1.04 KB, created by
uta
on 2009-08-31 01:04:32 UTC
(
hide
)
Description:
Patch to fix this problem with another approach
Filename:
MIME Type:
Creator:
uta
Created:
2009-08-31 01:04:32 UTC
Size:
1.04 KB
patch
obsolete
>diff -Naur httpd-2.2.11.orig/modules/proxy/mod_proxy_balancer.c httpd-2.2.11/modules/proxy/mod_proxy_balancer.c >--- httpd-2.2.11.orig/modules/proxy/mod_proxy_balancer.c 2008-11-15 23:16:23.000000000 +0900 >+++ httpd-2.2.11/modules/proxy/mod_proxy_balancer.c 2009-08-31 16:18:32.000000000 +0900 >@@ -1170,8 +1170,15 @@ > * The worker might still be unusable, but we try > * anyway. > */ >- if (!PROXY_WORKER_IS_USABLE(worker)) >+ if (!PROXY_WORKER_IS_USABLE(worker)) { > ap_proxy_retry_worker("BALANCER", worker, r->server); >+ if (PROXY_WORKER_IS_USABLE(worker)) { >+ /* Busyness counter should be reset >+ * when the worker is returned to be usable. >+ */ >+ worker->s->busy = 0; >+ } >+ } > > /* Take into calculation only the workers that are > * not in error state or not disabled.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47063
:
23520
|
24189
|
24190