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

Connect-Timeout Behavior - Include Waiting for Connection Pool #824

Open
nir-bar-zvi opened this issue Mar 13, 2024 · 1 comment
Open

Connect-Timeout Behavior - Include Waiting for Connection Pool #824

nir-bar-zvi opened this issue Mar 13, 2024 · 1 comment

Comments

@nir-bar-zvi
Copy link

We need our data-access code to be within a timeout. Currently, it seems the connect-timeout setting and behavior doesn't account for the time it takes for a connection to be avilable in the pool. Meaning, when the pool is exhausted, waiting for a connection when making a query can take longer than the connect-timeout setting.
This causes our system to spiral out of control since we have automated request timeouts and retries. We don't want to increase the connection pool in this case and we prefer to fail the requests, and use the connect-timeout for that.

To summarize, we need a connection-timeout behavior that accounts for waiting for the pool to have a connection available. Do you have any guidance as to how we can achieve it?

@azuker
Copy link

azuker commented Apr 7, 2024

Hi, I am in need of that too.

@porsager - First, thanks for all the work that was put into this, it's an awesome package and it does wonders for us.
Regarding this issue, do you have any suggestion on how to approach this?

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

2 participants