-
Notifications
You must be signed in to change notification settings - Fork 8
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
maxEventListeners reached from reading file after backpressure #41
Labels
Comments
Fixing this issue will also prompt an upgrade of the supported node versions, thus it will be a |
darinspivey
added a commit
that referenced
this issue
Feb 13, 2024
If a file isn't immediately put into flowing mode, then backpressure could be invoked right away. Doing so can add many more event listeners onto the stream as it uses the async iterator. This increases the max listeners above the default for a little more tolerance before seeing the nasty node warnings about event emitter leaks. BREAKING CHANGE: `node 16` is becoming unsupported soon. Change the supported versions to be >= `18` Fixes: #41
darinspivey
added a commit
that referenced
this issue
Feb 13, 2024
If a file isn't immediately put into flowing mode, then backpressure could be invoked right away. Doing so can add many more event listeners onto the stream as it uses the async iterator. This increases the max listeners above the default for a little more tolerance before seeing the nasty node warnings about event emitter leaks. BREAKING CHANGE: `node 16` is becoming unsupported soon. Change the supported versions to be >= `18` Fixes: #41
darinspivey
added a commit
that referenced
this issue
Feb 13, 2024
If a file isn't immediately put into flowing mode, then backpressure could be invoked right away. Doing so can add many more event listeners onto the stream as it uses the async iterator. This increases the max listeners above the default for a little more tolerance before seeing the nasty node warnings about event emitter leaks. BREAKING CHANGE: `node 16` is becoming unsupported soon. Change the supported versions to be >= `18` Fixes: #41
🎉 This issue has been resolved in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When backpressure is reached, the async iterator created for
for await...of
adds more event listeners onto the stream. The code shouldsetMaxListeners(100)
to allow some breathing room for such cases (and avoid pesky node warnings)The text was updated successfully, but these errors were encountered: