Skip to content

Fix cleaning send queue on restart (#18511) #21039

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

Merged
merged 1 commit into from
May 18, 2020
Merged

Conversation

BrennanConroy
Copy link
Member

@BrennanConroy BrennanConroy commented Apr 20, 2020

Port of #18511

Description

When using the SignalR typescript/javascript client, if the connection to the server is interrupted (walked through a tunnel, etc.) and the automatic reconnect logic runs, the first time the client can successfully reconnect causes a reconnect failure and triggers another reconnect attempt.

Customer Impact

  • Was the bug reported by a customer?

#17613 was reported and had multiple customers chime in with the same problem.

  • How does the bug impact the customer

There are errors in the browser and it causes unnecessary traffic between client and server because it does a successful negotiate then fails and repeats the negotiate again. And since it increases the reconnection attempt count, it could either cause the client to stop connecting if it reaches the end of its reconnect loop or it could negatively impact custom reconnect logic from customers.

  • Are there any workarounds? If so, why are they not acceptable alternatives?

No.

Regression?

No, bug was introduced in the same release that auto reconnect was added.

Risk

Low. Problem is well understood and test was added to verify behavior.

@ghost ghost added the area-signalr Includes: SignalR clients and servers label Apr 20, 2020
@BrennanConroy BrennanConroy added this to the 3.1.x milestone Apr 21, 2020
Copy link
Member

@halter73 halter73 left a comment

Choose a reason for hiding this comment

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

Why is this a draft?

@BrennanConroy BrennanConroy added the Servicing-consider Shiproom approval is required for the issue label Apr 27, 2020
@ghost
Copy link

ghost commented Apr 27, 2020

Hello human! Please make sure you've included the Shiproom Template in a comment or (preferably) the PR description. Also, make sure this PR is not marked as a draft and is ready-to-merge.

@BrennanConroy BrennanConroy marked this pull request as ready for review April 27, 2020 23:45
@analogrelay analogrelay added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Apr 28, 2020
@analogrelay analogrelay modified the milestones: 3.1.x, 3.1.5 Apr 28, 2020
@analogrelay
Copy link
Contributor

Approved by Tactics for 3.1.5

@dougbu dougbu merged commit 66ddf35 into release/3.1 May 18, 2020
@dougbu dougbu deleted the brecon/portsendqueue branch May 18, 2020 21:58
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 Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants