Skip to content

Conversation

ndyakov
Copy link
Member

@ndyakov ndyakov commented Oct 14, 2025

If a connection is used in the StreamingCredentialsProvider it may need to be removed (when authentication fails) and at this point of time the connection may be in the idleConns slice. We have to remove it to prevent leaking unused/closed connection. This connection would have been marked as bad later and although the leak would have resolved itself, the proper approach would be to remove it early, so checkMinIdle can keep the correct number of idle connections.

Fixes #3542

@ndyakov ndyakov self-assigned this Oct 14, 2025
@ndyakov ndyakov added the bug label Oct 14, 2025
Copy link

jit-ci bot commented Oct 14, 2025

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

@ndyakov ndyakov merged commit c699a45 into v9.14 Oct 15, 2025
20 checks passed
@ndyakov ndyakov deleted the ndyakov/fix-pool-idle branch October 15, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants