Skip to content

Remove decreasing of created connections count when releasing not owned by connection pool connection(fixes issue #2832). #3514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixing a typo in a comment
  • Loading branch information
petyaslavova committed Feb 24, 2025
commit ab674fd1672e56626ddae83ab9417e453f51a041
2 changes: 1 addition & 1 deletion redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ def release(self, connection: "Connection") -> None:
else:
# Pool doesn't own this connection, do not add it back
# to the pool.
# The created connections count shouls not be changed,
# The created connections count should not be changed,
# because the connection was not created by the pool.
connection.disconnect()
return
Expand Down
Loading