-
Notifications
You must be signed in to change notification settings - Fork 982
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
MaxListenerExceededWarning with restify 8.6.0 #1883
Comments
We noticed the same thing on node 16. Bumping up the listener limit to 15 doesn't help either, then we're just getting |
Same issue observed in our organization and definitely the root cause is #1880 |
Same issue on node v14.15.4 when using 8.6.0. Pinning at 8.5.1 for now. |
Any update on this one? |
This should be fixed in v8.6.1 released today. |
When I updated to latest version of Restify. I started to get memory leak warnings.
Restify Version: 8.6.0
Node.js Version: 14.18.1
Expected behaviour
No warnings
Actual behaviour
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit at _addListener (events.js:475:17) at Socket.addListener (events.js:497:10) at Socket.Readable.on (internal/streams/readable.js:853:35) at Socket.socketListenerWrap [as on] (_http_server.js:950:54) at Socket.once (events.js:541:8) at readBody (/code/node_modules/restify/lib/plugins/bodyReader.js:189:20) at nextTick (/code/node_modules/restify/lib/chain.js:167:13) at processTicksAndRejections (internal/process/task_queues.js:77:11)
Repro case
I don't know how to minimally reproduce it. I am running with a fairly large server in prod.
Cause
I suspect that this is the cause: #1880
Are you willing and able to fix this?
No, I am not able to fix it beyond just reverting the change in the pull request referenced above.
The text was updated successfully, but these errors were encountered: