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

Updated documentation for idleTimeoutMillis #74

Merged
merged 1 commit into from
May 16, 2022
Merged

Conversation

mjomble
Copy link
Contributor

@mjomble mjomble commented Mar 8, 2022

It took me a long time to figure out why idleTimeoutMillis wasn't applying to all my connections. Some of them were kept open for hours, became stale and caused all sorts of trouble.

After lots of debugging, I realised that the min option was the culprit, defaulting to 2 in Knex.
The idle timeout is only applied if there are more connections than the minimum.

It seems like a good idea to document this behavior so others could figure it out more easily 🙂

@mautematico
Copy link

thank you very much.

We're facing a similar issue; interestingly enough, it happens only when SELECT'ed rows are bin data.

@elhigu
Copy link
Collaborator

elhigu commented May 12, 2022

Thanks, this is good addition 👍

@elhigu elhigu merged commit e4509bb into Vincit:master May 16, 2022
@elhigu
Copy link
Collaborator

elhigu commented May 16, 2022

added also feature idea to allow keeping idle resources in the pool fresh #75

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

Successfully merging this pull request may close these issues.

None yet

3 participants