https://issues.apache.org/bugzilla/show_bug.cgi?id=47840
Summary: A broken worker name is written in the log file.
Product: Tomcat Connectors
Version: 1.2.28
Platform: All
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: mod_jk
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24264)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24264)
patch for jk_lb_worker.c
I use the domain directive in workers.properties, and output the actual worker
name to the log.
<<workers.properties>>
worker.foo.domain=dom01
worker.foo.route=node01
...
worker.bar.domain=dom01
worker.bar.route=node02
...
worker.lb.balance_workers=foo, bar
...
<<log setting>>
* Use %R:
JkRequestLogFormat "%w(%R) %V %T"
or
* Use JK_WORKER_NAME:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
\"%{JK_WORKER_ROUTE}n\"" combined
I expected that an actual worker name was "dom01".
However, "4+" was output to the log as a worker name.
<<mod_jk.log>>
[Mon Sep 14 14:27:31.700 2009] wlb(4+) localhost 0.003631
<<access_log>>
127.0.0.1 - - [14/Sep/2009:14:27:31 +0900] "GET /test.jsp HTTP/1.1" 200 1596
"http://localhost/index.jsp" "ELinks/0.11.1 (textmode; Linux; 80x24-2)" "4+"
When "end->service()" is executed, wr.domain is initialized.
I attached the patch.
regards.
--
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: [email protected]
For additional commands, e-mail: [email protected]