elasticsearch-js
elasticsearch-js copied to clipboard
Abort signal - Possible EventEmitter memory leak detected. 11 abort listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
When using abort signal with the esc client I get the following:
Possible EventEmitter memory leak detected. 11 abort listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
Is esc or maybe undici missing to release the abort signal handler?
I'm trying to get more info.
Might be related to pipelining.
Getting this warning too 👍
So this has nothing to do with abort signal. It has to do with number of concurrent requests without signals.
https://github.com/elastic/elastic-transport-js/blob/main/src/connection/UndiciConnection.ts#L126
Every request without signal adds an abort listener to the connection. This is not optimal...
Estou recebendo o mesmo aviso aqui também.
Não sei se essa issue pode ajudar em algo: https://github.com/node-fetch/node-fetch/issues/1295