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: remove closed listeners from transport manager #1733

Merged
merged 3 commits into from
May 5, 2023

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 4, 2023

When a listener closes, remove it from the stored list of listeners.

This wasn't much of a problem before as listeners tended to be very long lived but circuit relay listeners get closed all the time so this fixes a now much more obvious memory leak.

When a listener closes, remove it from the stored list of listeners.

This wasn't much of a problem before as listeners tended to be very
long lived but circuit relay listeners get closed all the time so
this fixes a memory leak.
@achingbrain achingbrain requested a review from maschad May 4, 2023 10:37
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment, LGTM otherwise

src/transport-manager.ts Show resolved Hide resolved
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@achingbrain achingbrain merged commit c6367e0 into master May 5, 2023
@achingbrain achingbrain deleted the fix/remove-closed-listeners branch May 5, 2023 06:19
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.

2 participants