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

conn.isValidSync using 1000s timeout #220

Open
Rouzz opened this issue Jun 25, 2021 · 0 comments
Open

conn.isValidSync using 1000s timeout #220

Rouzz opened this issue Jun 25, 2021 · 0 comments

Comments

@Rouzz
Copy link

Rouzz commented Jun 25, 2021

Hi,

I've experienced a weird issue where sometime my application stops reacting to anything after a new request.
I've mapped this issue to the call in lib/pool.js on line 108 that calls conn.isValidSync(1000). With 1000 being the timeout in seconds it seems.
So if for any reason that method fail and waits for the timeout, it will wait 1000s for all connections which is a bit too much.

Would it be possible to bring this down to a few seconds ? Or even better to a configurable delay.

Thanks,
Rouzz

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

1 participant