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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user