Skip to content

pg-pool MaxListenersExceededWarning #3539

@Zhincore

Description

@Zhincore

Hello,

I use pg-pool through Prisma and when inserting a lot of rows in succession I get MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 error listeners added to [Client]. MaxListeners is undefined. Use events.setMaxListeners() to increase limit due to this line:

client.on('error', idleListener)

Am I doing something wrong on my end? Is this an expected behavior? I feel like the listener should be removed at some point but I can't see it.

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