This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure mongodb credentials are always sent upon (re)connection
If existing socket is reset, perhaps due to mongod failure, credentials hash isn't reset. This causes them to not be sent upon reconnection. Changed to reset at connect() instead of relying on a disconnect() that may or may not happen. Also cache last set of credentials so they can be reused when connection loss is detected by with_connection().
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 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