garydgregory commented on PR #564: URL: https://github.com/apache/commons-dbcp/pull/564#issuecomment-7196012709
@vzhn Thank you for the PR. The basic finding is valid but the fix is incorrect (doubles state management) and incomplete (same issue in `PoolingDriver`). See PR #565. Specifically: the new `closing` flag adds a **second** piece of lifecycle state alongside the `closed` flag inherited from `DelegatingConnection`. This fixes the `PoolingDataSource` path, but `PoolingDriver.PoolGuardConnectionWrapper` inherits the same vulnerable `close()` implementation and remains affected. The shared protection belongs in `DelegatingConnection.close()`: serialize the existing closed-state check and cleanup so both wrappers benefit without introducing another lifecycle flag. Closing; you are credited in `changes.xml`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
