DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18135>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18135

mod_jk: sticky_session defaults to 0 and not to 1 as documented.

           Summary: mod_jk: sticky_session defaults to 0 and not to 1 as
                    documented.
           Product: Tomcat 4
           Version: 4.1.21
          Platform: Sun
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:JK/AJP (deprecated)
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Tomcat 4.1.21
connectors 4.1.21
Apache/2.0.44 (Unix) mod_jk/1.2.3-dev


If sticky_session property is not declared it defaults to 0 and not 1 as documented.
Migrating a working load balancing 4.1.12 configuration to mod_jk/1.2.3-dev gets
calls distributed between the workers group members, breaking the session,
unless i declare sticky_session=1 in the load balancer worker.

You can easily see in the code that if the property is not declared it defaults
to JK_FALSE.

int jk_get_is_sticky_session(jk_map_t *m,
                           const char *wname) {
   int rc = JK_TRUE;
   char buf[1024];
   if (m && wname) {
       int value;
       sprintf(buf, "%s.%s.%s", PREFIX_OF_WORKER, wname, STICKY_SESSION);
       value = map_get_int(m, buf, 0);
       if (!value) rc = JK_FALSE;
   }
   return rc;
}


Putting line
value = map_get_int(m, buf, 0);
to
value = map_get_int(m, buf, 1);
makes everything working as documented.

Regards, Gabriele.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to