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

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

pzajaczkowski
Copy link
Contributor

@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.

Copy link
Collaborator

@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 thanks @pzajaczkowski

@mtmk mtmk merged commit 5859101 into nats-io:main Dec 4, 2024
10 checks passed
mtmk added a commit that referenced this pull request Dec 10, 2024
* Add password support for PFX files (#694)
* Add KV try get (#688)
* Jetstream CreateOrUpdateStream (#692)
* Update README.md (#683)
* Add (force) reconnect method (#684)
* Add flags to NatsMsg and JetStream Request (#652)
@mtmk mtmk mentioned this pull request Dec 10, 2024
mtmk added a commit that referenced this pull request Dec 10, 2024
* Add password support for PFX files (#694)
* Add KV try get (#688)
* Jetstream CreateOrUpdateStream (#692)
* Update README.md (#683)
* Add (force) reconnect method (#684)
* Add flags to NatsMsg and JetStream Request (#652)
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