mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
* Fix PR36507 (mod_proxy_balancer does not handle sticky sessions with
tomcat correctly). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@295013 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -193,7 +193,18 @@ static proxy_worker *find_session_route(proxy_balancer *balancer,
|
||||
*route = get_path_param(r->pool, *url, balancer->sticky);
|
||||
if (!*route)
|
||||
*route = get_cookie_param(r, balancer->sticky);
|
||||
if (*route) {
|
||||
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
|
||||
"proxy: BALANCER: Found value %s for "
|
||||
"stickysession %s", *route, balancer->sticky);
|
||||
/*
|
||||
* If we found a value for sticksession, find the first '.' within.
|
||||
* Everything after '.' (if present) is our route.
|
||||
*/
|
||||
if ((*route) && ((*route = strchr(*route, '.')) != NULL ))
|
||||
(*route)++;
|
||||
if ((*route) && (**route)) {
|
||||
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
|
||||
"proxy: BALANCER: Found route %s", *route);
|
||||
/* We have a route in path or in cookie
|
||||
* Find the worker that has this route defined.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user