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

fixed a resource leak that prevented status iterators from cleaning properly #137

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

aricart
Copy link
Member

@aricart aricart commented Nov 12, 2024

Fix #134

…ing for status was in an async function - the loop would terminate, but the actual closing didn't finish so any code following the async loop didn't execute. also simplified handling of connection status listeners (listeners were tracked by the connection and the protocol - now only by the protocol), fixed a leak on dial where a promise was not cancelled for the wait between dial interval.

fix(test): jetstream test was not really testing the status listener leaks

Fix #134

Signed-off-by: Alberto Ricart <[email protected]>
@aricart aricart changed the title Fix 134 fixed a resource leak that prevented status iterators from cleaning properly Nov 12, 2024
Copy link

@scottf scottf left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@scottf scottf left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@mtmk mtmk left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@scottf scottf left a comment

Choose a reason for hiding this comment

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

LGTM

@aricart aricart merged commit 6a1b345 into main Nov 13, 2024
20 checks passed
@aricart aricart deleted the fix-134 branch November 13, 2024 02:51
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.

Dangling async iterator after closing connection
3 participants