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

[feat request] Allow to configure number of connections in connection pool when build a client #2424

Open
gftea opened this issue Sep 16, 2024 · 3 comments

Comments

@gftea
Copy link

gftea commented Sep 16, 2024

At present, it seems no way to adjust the connection pool size, wonder if this can be added?

@droundy
Copy link

droundy commented Sep 24, 2024

Are you specifically asking about a maximum number of connections in the pool?

@gftea
Copy link
Author

gftea commented Sep 24, 2024

Yes.

@RobMor
Copy link
Contributor

RobMor commented Sep 25, 2024

Chiming in here to say +1.

We have an application that makes requests to many different downstream hosts and we observe memory usage growing until we stop calling new endpoints.

We are sometimes able to reuse connections within the idle timeout so we would rather not disable connection caching entirely. Some way to bound the number of connections to keep in the pool overall would be very helpful.

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

No branches or pull requests

3 participants