Skip to content

Conversation

@BrennanConroy
Copy link
Member

Fixes #34549

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Jul 27, 2021
@BrennanConroy BrennanConroy requested a review from halter73 July 27, 2021 20:16
@BrennanConroy BrennanConroy requested a review from Pilchie as a code owner July 27, 2021 20:16

// we incremented then saw that the next reconnect delay was null, meaning reconnect attempts are exhausted,
// so decrement to have the correct number for logs and exceptions
previousReconnectAttempts--;
Copy link
Member

Choose a reason for hiding this comment

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

Should wee just increment this at the start of the while (nextRetryDelay != null) so we don't have to decrement? Or maybe after the Task.Delay, since if it was canceled by shutdown or something we technically didn't attempt a reconnect.

Copy link
Member Author

Choose a reason for hiding this comment

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

So I changed it to try that out, it required changing a couple other spots too. Take a quick look to make sure it's not obviously wrong, or if we prefer the first way.

@BrennanConroy BrennanConroy enabled auto-merge (squash) July 29, 2021 01:35
@BrennanConroy BrennanConroy merged commit 33393c5 into main Jul 29, 2021
@BrennanConroy BrennanConroy deleted the brecon/reconnectnum branch July 29, 2021 03:48
@ghost ghost added this to the 6.0-rc1 milestone Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SignalR client: Incorrect number of failed reconnection attempts in log message

3 participants