https://bz.apache.org/bugzilla/show_bug.cgi?id=66502
Bug ID: 66502 Summary: tomcat-jdbc ConnectionPool.returnConnection() accept closed connections Product: Tomcat 10 Version: 10.1.6 Hardware: PC OS: Mac OS X 10.1 Status: NEW Severity: normal Priority: P2 Component: Util Assignee: dev@tomcat.apache.org Reporter: z...@godaddy.com Target Milestone: ------ When a connection is checked out from pool, it could be forcefully closed by the server. The connection is then returned to the connection pool, available for more borrow/returns; the same broken connection causes plurals of failures for the application, until `validationInterval` is reached when there's a chance to evict the connection. Proposal: PooledConnection.validate(VALIDATE_RETURN) checks underlying `connection.isClosed()` unconditionally. This should be an inexpensive check. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org