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(nats): drain connections upon error #443

Merged
merged 1 commit into from
Feb 7, 2025
Merged

fix(nats): drain connections upon error #443

merged 1 commit into from
Feb 7, 2025

Conversation

hspedro
Copy link
Collaborator

@hspedro hspedro commented Feb 7, 2025

When failing to connect, drain connection rather than closing directly. This is safer than calling close and will wait for connections before closing, gracefully handling ongoing reconnects and avoid leaking goroutines in test

@hspedro hspedro force-pushed the fix/drain-nats-conn branch 3 times, most recently from 5f65c0a to f21f902 Compare February 7, 2025 01:19
When failing to connect, drain connection rather than closing directly.
This is safer than calling close and will wait for connections before
closing, gracefully handling ongoing reconnects and avoid leaking
goroutines in test
@hspedro hspedro force-pushed the fix/drain-nats-conn branch from f21f902 to 1c2f000 Compare February 7, 2025 01:28
Copy link
Collaborator

@rsafonseca rsafonseca left a comment

Choose a reason for hiding this comment

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

LGTM

@hspedro hspedro merged commit 319b456 into v2 Feb 7, 2025
4 checks passed
@hspedro hspedro deleted the fix/drain-nats-conn branch February 7, 2025 11:14
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