Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CORHALFetch] EventEmitter memory leak #248

Open
touv opened this issue Sep 5, 2022 · 1 comment
Open

[CORHALFetch] EventEmitter memory leak #248

touv opened this issue Sep 5, 2022 · 1 comment

Comments

@touv
Copy link
Contributor

touv commented Sep 5, 2022

(node:79571) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 16 abort listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
    at _addListener (node:events:601:17)
    at EventEmitter.addListener (node:events:619:10)
    at AbortSignal.addEventListener (/home/thouveni/devel/ezs/packages/conditor/node_modules/node-abort-controller/index.js:19:23)
    at /home/thouveni/devel/ezs/packages/conditor/node_modules/fetch-with-proxy/node_modules/node-fetch/lib/index.js:1472:11
    at new Promise (<anonymous>)
    at fetch (/home/thouveni/devel/ezs/packages/conditor/node_modules/fetch-with-proxy/node_modules/node-fetch/lib/index.js:1437:9)
    at fetch (/home/thouveni/devel/ezs/packages/conditor/node_modules/fetch-with-proxy/lib/index.js:123:36)
    at /home/thouveni/devel/ezs/packages/conditor/lib/corhal-fetch.js:22:54
    at RetryOperation.runAttempt [as _fn] (/home/thouveni/devel/ezs/packages/conditor/node_modules/async-retry/lib/index.js:42:15)
    at RetryOperation.attempt (/home/thouveni/devel/ezs/packages/conditor/node_modules/retry/lib/retry_operation.js:116:8)
    at run (/home/thouveni/devel/ezs/packages/conditor/node_modules/async-retry/lib/index.js:55:8)
    at new Promise (<anonymous>)
    at retry (/home/thouveni/devel/ezs/packages/conditor/node_modules/async-retry/lib/index.js:58:10)
    at Object.CORHALFetch (/home/thouveni/devel/ezs/packages/conditor/lib/corhal-fetch.js:99:57)
    at runMicrotasks (<anonymous>)
@parmentf parmentf changed the title [CORALFetch] EventEmitter memory leak [CORHALFetch] EventEmitter memory leak Sep 5, 2022
@parmentf
Copy link
Collaborator

I think the context you used CORHALFetch in was using node-schedule.
Be aware that

Job objects are EventEmitters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants