Author: jfrederic.clere(a)jboss.com
Date: 2008-07-02 08:30:49 -0400 (Wed, 02 Jul 2008)
New Revision: 1734
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Oops iscontext_host_ok() also test mapping.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-07-02 09:31:16 UTC
(rev 1733)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-07-02 12:30:49 UTC
(rev 1734)
@@ -582,7 +582,7 @@
/* check for /context[/] in the URL */
len = strlen(context->context);
if (strncmp(r->uri, context->context, len) == 0) {
- if (r->uri[len] == '\0' || r->uri[len] == '/')
{
+ if (r->uri[len] == '\0' || r->uri[len-1] ==
'/') {
/* Check status */
switch (context->status)
{
@@ -761,8 +761,8 @@
while (!mycandidate && !checked_standby) {
worker = (proxy_worker *)balancer->workers->elts;
for (i = 0; i < balancer->workers->nelts; i++, worker++) {
- if (worker->id == 0)
- continue; /* marked removed */
+ if (worker->id == 0)
+ continue; /* marked removed */
/* standby logic
* lbfactor: -1 broken node.
Show replies by date