Skip to content

fix the maxActiveConns sematic #2934

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

Closed
wants to merge 7 commits into from
Closed

Conversation

lawlielt
Copy link

@lawlielt lawlielt commented Mar 5, 2024

we can get conn use the Get or NewConn method, they are all will be add to the p.conns.

the sematic of the MaxActiveConns opt is the maximum number of connections in the pool

Copy link
Author

@lawlielt lawlielt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the maxActiveConns sematic

@ndyakov
Copy link
Member

ndyakov commented Jun 5, 2025

Hello @lawlielt , would you please add unit tests that cover the change that you did

@ndyakov
Copy link
Member

ndyakov commented Aug 5, 2025

@lawlielt I am not 100% sure if we would like to calculate the len since we have the poolSize. Can you check the changes in #3447 related to the poolSize and let me know there if you would like to change it. For now I'm gonna close this one.

@ndyakov ndyakov closed this Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants