Skip to content

Add (force) reconnect method #684

Merged
mtmk merged 2 commits into
nats-io:mainfrom
pzajaczkowski:add-reconnect-method
Dec 4, 2024
Merged

Add (force) reconnect method #684
mtmk merged 2 commits into
nats-io:mainfrom
pzajaczkowski:add-reconnect-method

Conversation

@pzajaczkowski

@pzajaczkowski pzajaczkowski commented Nov 28, 2024

Copy link
Copy Markdown
Contributor

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

mtmk commented Nov 28, 2024

Copy link
Copy Markdown
Member

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.

@mtmk mtmk left a comment

Copy link
Copy Markdown
Member

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
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)
@pzajaczkowski
pzajaczkowski deleted the add-reconnect-method branch January 15, 2025 17:06
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