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

not re-using connections #5

Open
jayjacksonworks opened this issue Apr 2, 2021 · 2 comments
Open

not re-using connections #5

jayjacksonworks opened this issue Apr 2, 2021 · 2 comments

Comments

@jayjacksonworks
Copy link

I think I'm noticing when I leave the listener on for an extended period of time, it creates multiple connections over time instead of re-using the same connection over and over. It behaves nicely for a bit but at some point, the number of connections skyrockets and it locks up my dev/test database. Was wondering if you should add some checks inside await_pg_notifications to see if the connection is stale/invalid before reconnecting.

Screen Shot 2021-03-22 at 10 42 56 PM
Screen Shot 2021-03-22 at 10 42 45 PM

@djrobstep
Copy link
Owner

Thanks for filing this issue!

In the interests of narrowing down the cause, are you able to share a sanitized snippet of the code you're using to create the connection?

@jayjacksonworks
Copy link
Author

jayjacksonworks commented Apr 5, 2021 via email

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