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

Fix EventEmitter leak #21

Merged
merged 1 commit into from
Oct 7, 2021
Merged

Fix EventEmitter leak #21

merged 1 commit into from
Oct 7, 2021

Conversation

jamiees2
Copy link
Collaborator

@jamiees2 jamiees2 commented Oct 7, 2021

We were leaking event handlers by always attaching to the FluentSocket eventEmitter. When there is no error event but lots of timeouts, we end up attaching lots of error listeners and never removing them.

Fixes #20 I think

Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>
@jamiees2 jamiees2 force-pushed the fix-event-emitter-leak branch from fa8f2cc to bbb5658 Compare October 7, 2021 10:24
@jamiees2 jamiees2 merged commit 689870f into master Oct 7, 2021
@jamiees2 jamiees2 deleted the fix-event-emitter-leak branch October 7, 2021 10:25
github-actions bot added a commit that referenced this pull request Oct 7, 2021
Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com> 689870f
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.

MaxListenersExceededWarning: Possible EventEmitter memory leak detected
1 participant