Bug 39473 - Session timeout much shorter than setting in web.xml in cluster envirement
Summary: Session timeout much shorter than setting in web.xml in cluster envirement
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina:Cluster (show other bugs)
Version: 5.5.7
Hardware: Sun Solaris
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
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 :-(