You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GOMEZ Henri <hg...@slib.fr> on 2001/01/13 00:46:32 UTC
RE: [PATCH] adapter in load balancing (version 1.2 - Tomcat 3.2.x
)
Will you update also the 3.3 branch ?-)
"Pour la plupart des hommes, se corriger consiste à changer de défauts."
-- Voltaire
>-----Original Message-----
>From: Dan Milstein [mailto:danmil@shore.net]
>Sent: Friday, January 12, 2001 6:59 PM
>To: tomcat-dev@jakarta.apache.org
>Subject: Re: [PATCH] adapter in load balancing (version 1.2 - Tomcat
>3.2.x)
>
>
>Benoit,
>
>Thanks -- I actually just fixed this in the 3.2 branch.
>
>-Dan
>
>Benoit Derouet wrote:
>>
>> Hi,
>>
>> The load balancer worker fail to handle load
>balancing (with sticky
>> sessions) if the application uses custom cookies.
>>
>> In some circumstances, the load balancer worker
>can't retreive the server
>> name from the JSessionID cookie and is not able to redirect
>to the good
>> server.
>>
>> The algorithm parse the cookie header to extract the
>server name from the
>> JSessionID cookie. It find properly the end of the server
>name but fail to
>> cut the chars after.
>> So, it works fine if the cookie header contains only one
>cookie (or if
>> JSessionID is the last cookie) but If they are custom
>cookie, the server
>> name extracted will be: "servername;mycookieVal=myCookieValue ......"
>>
>> The bug is fixed around line 170.
>> (line id_end=NULL; replaced by id_end[0] = '\0'; )
>>
>> 'hope this will be integrated in future versions !
>(as our customers need
>> sticky load balancing...)
>>
>> regards.
>>
>> Benoit
>--
>
>Dan Milstein // danmil@shore.net
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>For additional commands, email: tomcat-dev-help@jakarta.apache.org
>