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

idleTimeout doenst work in lambda environment? #2883

Open
rogerhlg opened this issue Jul 23, 2024 · 1 comment
Open

idleTimeout doenst work in lambda environment? #2883

rogerhlg opened this issue Jul 23, 2024 · 1 comment

Comments

@rogerhlg
Copy link

Hi! I'm building a Lambda function with Drizzle ORM (also tested with TypeORM) and I'm not sure if this is the "normal" operation. Here is the problem:

My application starts the DB connection outside the handler to reuse it between Lambda calls. To reuse the same connection, I do not kill the pool or connections. My idea is that the "idleTimeout" setting will handle this (if not reused again by other Lambda containers). Locally, this works great, but in the Lambda environment, the connections do not respect the timeouts specified in "idleTimeout," and the connection turns into a zombie connection. Am I missing something here?

My connection:

image

@wellwelwel
Copy link
Collaborator

Hi, @rogerhlg 🙋🏻‍♂️

Could you check it in v3.11.1?

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