Author: jfrederic.clere(a)jboss.com
Date: 2009-03-17 05:27:29 -0400 (Tue, 17 Mar 2009)
New Revision: 2367
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Fix for MODCLUSTER-63.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-03-17 08:35:10 UTC
(rev 2366)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-03-17 09:27:29 UTC
(rev 2367)
@@ -1484,7 +1484,14 @@
if (*(worker->s->route) && strcmp(worker->s->route,
route) == 0) {
/* that is the worker corresponding to the route */
if (worker && PROXY_WORKER_IS_USABLE(worker)) {
- return worker;
+ /* The context may not be available */
+ nodeinfo_t *node;
+ if (node_storage->read_node(worker->id, &node) !=
APR_SUCCESS)
+ return NULL; /* can't read node */
+ if (iscontext_host_ok(r, balancer, node))
+ return worker;
+ else
+ return NULL; /* application has been removed from the node */
} else {
/*
* If the worker is in error state run
Show replies by date