1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

as not everyone needs sticky sessions - avoid segfault in balancer manager and

mod_status


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@572832 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
André Malo
2007-09-04 23:09:24 +00:00
parent da64e3a7b1
commit 42bb0116dd
2 changed files with 18 additions and 7 deletions

View File

@@ -758,11 +758,17 @@ static int balancer_handler(request_rec *r)
ap_rputs("\n\n<table border=\"0\" style=\"text-align: left;\"><tr>"
"<th>StickySession</th><th>Timeout</th><th>FailoverAttempts</th><th>Method</th>"
"</tr>\n<tr>", r);
if (strcmp(balancer->sticky, balancer->sticky_path)) {
ap_rvputs(r, "<td>", balancer->sticky, " | ", balancer->sticky_path, NULL);
if (balancer->sticky) {
if (strcmp(balancer->sticky, balancer->sticky_path)) {
ap_rvputs(r, "<td>", balancer->sticky, " | ",
balancer->sticky_path, NULL);
}
else {
ap_rvputs(r, "<td>", balancer->sticky, NULL);
}
}
else {
ap_rvputs(r, "<td>", balancer->sticky, NULL);
ap_rputs("<td> - ", r);
}
ap_rprintf(r, "</td><td>%" APR_TIME_T_FMT "</td>",
apr_time_sec(balancer->timeout));