tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shac...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/native/apache/jserv jserv_balance.c
Date Fri, 18 Feb 2000 09:40:53 GMT
shachor     00/02/18 01:40:53

  Modified:    src/native/apache/jserv jserv_balance.c
  Log:
  Update the Jserv Apache plugin to handle the new cookie name
  for the session ID. Also, make it use only a single cookie for the session
  state instead of cookies that looks like JSESSIONID#ZONEID
  
  Jserv can now load balance among Several Tomcat engines.
  Tested and verified under WinNT.
  
  Revision  Changes    Path
  1.2       +9 -3      jakarta-tomcat/src/native/apache/jserv/jserv_balance.c
  
  Index: jserv_balance.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/apache/jserv/jserv_balance.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jserv_balance.c	1999/11/25 01:29:55	1.1
  +++ jserv_balance.c	2000/02/18 09:40:53	1.2
  @@ -54,7 +54,7 @@
    * Author:      Bernard Bernstein <bernard@corp.talkcity.com>                *
    * Updated:     March 1999 Jean-Luc Rochat <jlrochat@jnix.com>               *
    * Description: solved part of fail-over problems & LB improvments           *
  - * Version:     $Revision: 1.1 $
  + * Version:     $Revision: 1.2 $
    *****************************************************************************/
   
   #include "jserv.h"
  @@ -70,7 +70,7 @@
   /* then so must the other. This must stay in sync with the session cookie  */
   /* or parameter set by the java code                                       */
   
  -#define SESSION_IDENTIFIER "JServSessionId"
  +#define SESSION_IDENTIFIER "JSESSIONID"
   #define ROUTING_IDENTIFIER "JSERV_ROUTE"
   
   /* ========================================================================= */
  @@ -141,7 +141,13 @@
     char *val;
     char sessionid[256];
     strcpy(sessionid, SESSION_IDENTIFIER);
  -  strcat(sessionid, zone);
  +
  +  /* 
  +   * Not needed anymore... the route is based on the cookie's 
  +   * "path"
  +   * strcat(sessionid, zone); 
  +   */
  +
     val = get_param(sessionid, r);
     if (val == NULL)
       val = get_cookie(sessionid, r);
  
  
  

Mime
View raw message