-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to getting pooled conn on HC failure
Updated the LDAPConnectionPool behavior in the case that an attempt to check out a connection from the pool first encounters an existing connection that is deemed not valid by the configured health check. Previously, it would close that connection as defunct and try to create a new connection to replace it, but if that attempt was successful, the newly created connection would be added to the end of the pool's set of potentially available connections, and it would continue iterating through the set of connections to try to find one that is valid. Now, if the pool is able to successfully create a new connection to replace the existing defunct connection, it will immediately return that new connection without checking any of the other existing connections. This should substantially improve performance in the case that the pool has several connections that are already established but have become invalid for some reason in a way that does not prevent successfully establishing new connections.
- Loading branch information
Showing
3 changed files
with
78 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters