Bug 57637 - PersistentValve always causes a new session to be created
PersistentValve always causes a new session to be created
Product: Tomcat 9
Classification: Unclassified
Component: Catalina
All All
: P2 normal (vote)
: -----
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2015-02-25 16:00 UTC by Jeremy Boynes
Modified: 2015-02-26 19:42 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Boynes 2015-02-25 16:00:47 UTC
When determining if a session should be persisted, PersistentValve calls getSessionInternal with no arguments which causes a new one to be allocated if none exists. It should pass false to avoid unnecessary sessions being allocated.

Comment 1 Felix Schumacher 2015-02-25 21:16:07 UTC
Fixed in trunk.
Comment 2 Felix Schumacher 2015-02-26 19:42:16 UTC
Will be included in tomcat 8.0.21 and 7.0.60.