db-migrate/node-db-migrate

EventEmitter memory leaks

Open

#421 geöffnet am 4. Okt. 2016

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.296 Stars) (367 Forks)batch import
Refactoringgood first issuehelp wanted

Beschreibung

When using db-migrate programmatically for multiple databases, warnings are generated for EventEmitter leaks: Warning: Possible EventEmitter memory leak detected. 11 unhandledRejection listeners added.

Adding a unregisterEvents function to api.js should enable programmatic users to get around this. Such a function may also be used more generally to do proper cleanup.

Where registerEvent() is called: https://github.com/db-migrate/node-db-migrate/blob/master/api.js#L136-L147

Where registerEvents() is defined: https://github.com/db-migrate/node-db-migrate/blob/master/api.js#L136-L147


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Contributor Guide