ASF Bugzilla – Attachment 19092 Details for
Bug 40910
configuration problem with more than 1 balancer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against trunk
40910.diff (text/plain), 1.36 KB, created by
Ruediger Pluem
on 2006-11-06 08:32:07 UTC
(
hide
)
Description:
Patch against trunk
Filename:
MIME Type:
Creator:
Ruediger Pluem
Created:
2006-11-06 08:32:07 UTC
Size:
1.36 KB
patch
obsolete
>Index: modules/proxy/proxy_util.c >=================================================================== >--- modules/proxy/proxy_util.c (Revision 471219) >+++ modules/proxy/proxy_util.c (Arbeitskopie) >@@ -1324,6 +1324,7 @@ > proxy_worker *max_worker = NULL; > int max_match = 0; > int url_length; >+ int min_match; > int worker_name_length; > const char *c; > char *url_copy; >@@ -1349,20 +1350,25 @@ > pathstart = url_copy + (c - url); > *pathstart = '\0'; > ap_str_tolower(url_copy); >+ min_match = strlen(url_copy); > *pathstart = '/'; > } > else { > ap_str_tolower(url_copy); >+ min_match = strlen(url_copy); > } > > worker = (proxy_worker *)conf->workers->elts; > > /* > * Do a "longest match" on the worker name to find the worker that >- * fits best to the URL. >+ * fits best to the URL, but keep in mind that we must have at least >+ * a minimum matching of length min_match such that >+ * scheme://hostname[:port] matches between worker and url. > */ > for (i = 0; i < conf->workers->nelts; i++) { > if ( ((worker_name_length = strlen(worker->name)) <= url_length) >+ && (worker_name_length >= min_match) > && (worker_name_length > max_match) > && (strncmp(url_copy, worker->name, worker_name_length) == 0) ) { > max_worker = worker;
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 40910
: 19092