You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.
Event listeners are not removed when the connection is closed and pool.clear() is triggered.
I'm using typeorm SapDriver, and when the connection is opened and then closed over 10 times (in tests) than I'm getting this warning:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 poolError listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
Also it seems that PoolManager.eventEmitter() shouldn't be a static method, because in case of multi-tenants scenario, errors will be shown for every tenant connection.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Event listeners are not removed when the connection is closed and
pool.clear()
is triggered.I'm using typeorm SapDriver, and when the connection is opened and then closed over 10 times (in tests) than I'm getting this warning:
Also it seems that
PoolManager.eventEmitter()
shouldn't be a static method, because in case of multi-tenants scenario, errors will be shown for every tenant connection.The text was updated successfully, but these errors were encountered: