-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
@Zhincore
Description
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:
node-postgres/packages/pg-pool/index.js
Line 349 in 9174783
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
Labels
No labels