You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This warning from NodeJS is emitted when there are more than 10 connections in one session and they're being closed:
(node:7050) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 disconnected listeners added to [Connection]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)
Although this warning is generally helpful in detecting leaks, the user has already made a conscious decision to connect to that many connections and the warning is not helpful to them in this context. They're already trying to close those connections, and, in that process, we need to install listeners for disconnection events.
To disable this warning, this PR raises the limit on max listeners to 1000 for connections.
rhea-promise changed their connection object similarly a few months back as part of amqp/rhea-promise#110
There is some justification in that PR as to why it was done there instead of being left to the application itself. Does that justification apply here as well?
rhea-promise changed their connection object similarly a few months back as part of amqp/rhea-promise#110
There is some justification in that PR as to why it was done there instead of being left to the application itself. Does that justification apply here as well?
There is some justification in that PR as to why it was done there instead of being left to the application itself. Does that justification apply here as well?
In that PR Connection._connection is a private property. That does not apply here.
There is some justification in that PR as to why it was done there instead of being left to the application itself. Does that justification apply here as well?
In that PR Connection._connection is a private property. That does not apply here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This warning from NodeJS is emitted when there are more than 10 connections in one session and they're being closed:
Although this warning is generally helpful in detecting leaks, the user has already made a conscious decision to connect to that many connections and the warning is not helpful to them in this context. They're already trying to close those connections, and, in that process, we need to install listeners for disconnection events.
To disable this warning, this PR raises the limit on max listeners to 1000 for connections.