Skip to content

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