[mod_cluster-commits] mod_cluster SVN: r824 - trunk/native/mod_proxy_cluster.

do-not-reply at jboss.org do-not-reply at jboss.org
Sun Apr 29 12:31:26 EDT 2012


Author: jfrederic.clere at jboss.com
Date: 2012-04-29 12:31:25 -0400 (Sun, 29 Apr 2012)
New Revision: 824

Modified:
   trunk/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
make sure we copy the worker name when using httpd-2.4.x


Modified: trunk/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/native/mod_proxy_cluster/mod_proxy_cluster.c	2012-04-29 13:21:48 UTC (rev 823)
+++ trunk/native/mod_proxy_cluster/mod_proxy_cluster.c	2012-04-29 16:31:25 UTC (rev 824)
@@ -249,6 +249,7 @@
 #if AP_MODULE_MAGIC_AT_LEAST(20101223,1)
     proxy_worker *runtime;
     int i, def, fnv;
+    proxy_worker_shared *shared;
 #endif
 
     /* build the name (scheme and port) when needed */
@@ -342,8 +343,10 @@
     ptr = (char *) node;
     ptr = ptr + node->offset;
 #if AP_MODULE_MAGIC_AT_LEAST(20101223,1)
+    shared = worker->s;
     worker->s = (proxy_worker_shared *) ptr;
     worker->s->index = node->mess.id;
+    strcpy(worker->s->name, shared->name);
     strncpy(worker->s->route, node->mess.JVMRoute, PROXY_WORKER_MAX_ROUTE_SIZE-1);
     worker->s->route[PROXY_WORKER_MAX_ROUTE_SIZE-1] = '\0';
     worker->s->redirect[0] = '\0';



More information about the mod_cluster-commits mailing list