Skip to content
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

maxIdle confusion #2070

Closed
GingerAdonis opened this issue Jun 16, 2023 · 3 comments
Closed

maxIdle confusion #2070

GingerAdonis opened this issue Jun 16, 2023 · 3 comments

Comments

@GingerAdonis
Copy link

GingerAdonis commented Jun 16, 2023

There are 2 problems with the following description of maxIdle.

  1. It's not the minimum number of idle connections, but a maximum.
  2. The default is the same as connectionLimit option, not 10.
/**
* The minimum number of idle connections. (Default: 10)
*/
maxIdle?: number;
@GingerAdonis GingerAdonis changed the title maxIdle config option is wrongly named maxIdle confusion Jun 16, 2023
@wellwelwel
Copy link
Collaborator

According to documentation:

And confirming the default value as connectionLimit in practice:


@GingerAdonis, thanks for report it.

For now, I will change that description in PR #2067 (waiting for a third review by the community).
In case it isn't merged until the next release, I can change that description separately 🙋🏻‍♂️

@wellwelwel
Copy link
Collaborator

@GingerAdonis, can you check it in version ^3.4.0?

@GingerAdonis
Copy link
Author

Looks good to me. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants