You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2006/11/26 20:27:58 UTC
svn commit: r479407 - /tomcat/connectors/trunk/jk/native/common/jk_status.c
Author: mturk
Date: Sun Nov 26 11:27:57 2006
New Revision: 479407
URL: http://svn.apache.org/viewvc?view=rev&rev=479407
Log:
Fix status XML for ajp workers.
Modified:
tomcat/connectors/trunk/jk/native/common/jk_status.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?view=diff&rev=479407&r1=479406&r2=479407
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Sun Nov 26 11:27:57 2006
@@ -19,7 +19,7 @@
* Description: Status worker, display and manages JK workers *
* Author: Mladen Turk <mt...@jboss.com> *
* Author: Rainer Jung <rj...@apache.org> *
- * Version: $Revision$ *
+ * Version: $Revision$ *
***************************************************************************/
#include "jk_pool.h"
@@ -959,7 +959,9 @@
if (rs < lb->recover_wait_time - (int)difftime(now, wr->s->error_time))
rs += lb->maintain_time;
}
- jk_printf(s, " time-to-recover=\"%u\"/>\n", rs < 0 ? 0 : rs);
+ jk_printf(s, " time-to-recover=\"%u\"", rs < 0 ? 0 : rs);
+ /* Terminate the tag */
+ jk_puts(s, "/>\n");
}
if (name)
display_maps_xml(s, s->uw_map, sw, name, l);
@@ -971,7 +973,9 @@
jk_printf(s, " type=\"%s\"\n", status_worker_type(w->type));
jk_printf(s, " host=\"%s\"\n", aw->host);
jk_printf(s, " port=\"%d\"\n", aw->port);
- jk_printf(s, " address=\"%s\"/>\n", jk_dump_hinfo(&aw->worker_inet_addr, buf));
+ jk_printf(s, " address=\"%s\"", jk_dump_hinfo(&aw->worker_inet_addr, buf));
+ /* Terminate the tag */
+ jk_puts(s, "/>\n");
if (name)
display_maps_xml(s, s->uw_map, sw, name, l);
jk_putv(s, "</", sw->ns, "ajp>\n", NULL);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org