I'm using ssh2-promise to download a number of large files from an SFTP server. About half way through my process I see the following in my logs:
(node:29) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ssh listeners added to [SSHConnection]. Use emitter.setMaxListeners() to increase limit
(node:29) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 tunnel listeners added to [SSHConnection]. Use emitter.setMaxListeners() to increase limit
(node:29) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ssh:disconnect listeners added to [SSHConnection]. Use emitter.setMaxListeners() to increase limit
I'm using
ssh2-promise
to download a number of large files from an SFTP server. About half way through my process I see the following in my logs: