Bug 54227

Summary: maxAge should be checked on borrow
Product: Tomcat Modules Reporter: Micke <mikael.thorsson>
Component: jdbc-poolAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Mac OS X 10.4   

Description Micke 2012-11-30 13:08:35 UTC
The pool doesn't look at the maxAge setting when you borrow a connection, only when you return one. That's no good, since it lets you borrow (possibly stale) connections that are much older than maxAge, rendering the feature useless in times of low activity in the pool.
Comment 1 Filip Hanik 2014-08-07 21:04:23 UTC
Fixed in r1616594
Comment 2 Filip Hanik 2014-08-08 12:41:24 UTC
current fix does not run initSQL or testOnConnect
Comment 3 Filip Hanik 2014-08-08 14:03:12 UTC
Fixed in r1616760