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

Add (force) reconnect method #684

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pzajaczkowski
Copy link

@pzajaczkowski pzajaczkowski commented Nov 28, 2024

Resolves #479

  • Add ReconnectAsync method
  • Add test for ReconnectAsync method

I decided to follow naming proposed in design issue.

Ps. OnSocketAvailableAsync_ShouldBeInvokedOnReconnection() test in NatsConnectionTest.cs sometimes passes sometimes fails, so maybe there is some race? I've also noticed that it uses default TransportType (Tcp) instead of one provided by NatsConnectionTest class. It means same test runs 4 times if i understand correctly.

@mtmk
Copy link
Collaborator

mtmk commented Nov 28, 2024

thanks @pzajaczkowski! will check it out soon. just a quick repo maintenance thing: may I ask you to sign your commits and force push please. feel free to squash your commits if easier. this is CNCF recommendation we're following. sorry forgot to mention before in the issue.

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.

Add (force) reconnect method
2 participants