You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/02/10 19:29:06 UTC

[tomcat-connectors] branch master updated: Fix BZ 64051. Update session cookie on failover

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git


The following commit(s) were added to refs/heads/master by this push:
     new 92b4bc1  Fix BZ 64051. Update session cookie on failover
92b4bc1 is described below

commit 92b4bc13494d6ba07b472a00fce5cd2977624319
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jan 29 22:55:06 2020 +0000

    Fix BZ 64051. Update session cookie on failover
    
    https://bz.apache.org/bugzilla/show_bug.cgi?id=64051
---
 native/common/jk_lb_worker.c      | 1 +
 xdocs/miscellaneous/changelog.xml | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/native/common/jk_lb_worker.c b/native/common/jk_lb_worker.c
index ac91dc4..9d2f9c3 100644
--- a/native/common/jk_lb_worker.c
+++ b/native/common/jk_lb_worker.c
@@ -966,6 +966,7 @@ static int find_bysession_route(jk_ws_service_t *s,
              * balancer. Of course you will need a some kind of
              * session replication between those two remote.
              */
+            s->sticky = JK_FALSE;
             if (p->sticky_session_force)
                 candidate = -1;
             else if (*wr.redirect) {
diff --git a/xdocs/miscellaneous/changelog.xml b/xdocs/miscellaneous/changelog.xml
index f199848..6723754 100644
--- a/xdocs/miscellaneous/changelog.xml
+++ b/xdocs/miscellaneous/changelog.xml
@@ -59,6 +59,11 @@
         Common: Update the documentation to reflect that the source code for the
         Apache Tomcat Connectors has moved from Subversion to Git. (markt)
       </update>
+      <fix>
+        <bug>64051</bug>: Common. When using <code>set_session_cookie</code>,
+        ensure that an updated session cookie is issued if the load-balancer has
+        to failover to a different worker. (markt)
+      </fix>
     </changelog>
   </subsection>
 </section>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org