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

maxEventListeners reached from reading file after backpressure #41

Closed
darinspivey opened this issue Feb 13, 2024 · 2 comments · Fixed by #42
Closed

maxEventListeners reached from reading file after backpressure #41

darinspivey opened this issue Feb 13, 2024 · 2 comments · Fixed by #42
Labels

Comments

@darinspivey
Copy link
Contributor

darinspivey commented Feb 13, 2024

When backpressure is reached, the async iterator created for for await...of adds more event listeners onto the stream. The code should setMaxListeners(100) to allow some breathing room for such cases (and avoid pesky node warnings)

@darinspivey
Copy link
Contributor Author

Fixing this issue will also prompt an upgrade of the supported node versions, thus it will be a major

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
@logdnabot
Copy link
Member

🎉 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
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants