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

[SignalR TS] Fix permanent Disconnecting state (#30948) #31251

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

BrennanConroy
Copy link
Member

Backport of #30948

Description

If using automatic-reconnect, having an error during negotiate, and calling connection.stop can put the client in an unusable state. The only solution is to create a new connection from scratch, which means re-adding .on methods and event handlers.

The steps might look a bit convoluted, but it's fairly simple to hit if you put your PC to sleep and have an authenticated endpoint, when the PC wakes up and the connection tries to reconnect it can get an auth error and if you call stop because you know it will have an auth error you will hit this issue.

Customer Impact

Customer can get into a state where the SignalR connection is permanently in the disconnecting state and will never be usable again.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Test coverage is good, and new test added for this scenario.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@BrennanConroy BrennanConroy added the Servicing-consider Shiproom approval is required for the issue label Mar 25, 2021
@BrennanConroy BrennanConroy added this to the 3.1.x milestone Mar 25, 2021
@ghost
Copy link

ghost commented Mar 25, 2021

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.

@ghost ghost added the area-signalr Includes: SignalR clients and servers label Mar 25, 2021
@leecow leecow added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Apr 1, 2021
@leecow leecow modified the milestones: 3.1.x, 3.1.15 Apr 1, 2021
@wtgodbe wtgodbe merged commit cceefc7 into release/3.1 Apr 7, 2021
@wtgodbe wtgodbe deleted the brecon/bpdis branch April 7, 2021 23:07
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