Bug 39473 - Session timeout much shorter than setting in web.xml in cluster envirement
Session timeout much shorter than setting in web.xml in cluster envirement
Status: RESOLVED FIXED
Product: Tomcat 5
Classification: Unclassified
Component: Catalina:Cluster
5.5.7
Sun Solaris
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2006-05-03 16:50 UTC by Jin Jiang
Modified: 2006-05-03 10:16 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Jiang 2006-05-03 16:50:31 UTC
We have a tow nodes Tomcat cluster server on production.
The session timeout is set to 20 minutes.
The costomers complained their session timeout much shorter than 20 minutes,
sometimes within 5 minutes.
I did a test:
T1 -> access the page
T2 -> access the page
T3 -> access the page
The session would timeout if T3 - T1 > 20 minutes.

I compare the source for Non-cluster session and Cluster session,
found they are calculate the idle time in different way.

In DeltaSession.java:
int timeIdle = (int) ((timeNow - lastAccessedTime) / 1000L);

In StandardSession.java:
int timeIdle = (int) ((timeNow - thisAccessedTime) / 1000L);
Comment 1 Peter Rossbach 2006-05-03 17:16:22 UTC
Arrg!

You are right and have also see that for long time, but I don't find them. Many Thanks to report and find 
that
Peter

Fixed at 5.5.18.
I hope for next release we refactor the nasty code duplication between core and cluster modules :-(