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



Attachments

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.

http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/PersistentValve.java?revision=1561138&view=markup#l131
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.