tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47840] A broken worker name is written in the log file.
Date Sat, 19 Sep 2009 02:35:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47840

--- Comment #2 from Rainer Jung <rainer.jung@kippdata.de> 2009-09-18 19:35:24 PDT ---
I think your patch doesn't help. I analyzed the problem and came up with
another solution. Would you please try the below patch and see if it fixes the
problem for you:

Index: common/jk_lb_worker.c
===================================================================
--- common/jk_lb_worker.c       (revision 810065)
+++ common/jk_lb_worker.c       (working copy)
@@ -840,7 +840,11 @@
             }
             else if (*wr.domain && !uses_domain) {
                 candidate = find_best_bydomain(s, p, wr.domain, states, l);
-                s->route = wr.domain;
+                if (candidate >= 0) {
+                    s->route = wr.domain;
+                } else {
+                    s->route = NULL;
+                }
             }
             if (candidate >= 0) {
                 wr = p->lb_workers[candidate];

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message