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

set max listeners for event emitter #50

Merged
merged 1 commit into from
Aug 24, 2019
Merged

set max listeners for event emitter #50

merged 1 commit into from
Aug 24, 2019

Conversation

cblgh
Copy link
Member

@cblgh cblgh commented Jun 29, 2019

i was working on cabal client when i noticed the following

image

  1. cabal-core doesn't set its max listeners limit
  2. levelup sets it to infinity

so i figured we would do the same thing in the hopes of it solving cabal-club/cabal-cli#110

tagging a few reviewers to make sure this isn't really dumb

@hackergrrl
Copy link
Member

This is a good practice! I think though that the issue is around an "update" event, so I think the culprit is probably here, where we have a listener inside of a listener:

https://github.com/cabal-club/cabal-cli/blob/master/neat-screen.js#L237

@cblgh cblgh changed the title set max listeners for event emitter (fixes cli bug?) set max listeners for event emitter Jun 30, 2019
@hackergrrl hackergrrl merged commit f676c44 into master Aug 24, 2019
@cblgh cblgh deleted the set-maxlisteners branch April 18, 2020 11:26
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

Successfully merging this pull request may close these issues.

3 participants