Skip to content

not re-using connections #5

@jayjacksonworks

Description

@jayjacksonworks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions