Skip to content

Conversation

@TanayParikh
Copy link
Contributor

Fixes #32545

}

const reconnect = async (existingConnection?: HubConnection): Promise<boolean> => {
Blazor.reconnect = async (existingConnection?: HubConnection): Promise<boolean> => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were setting this after we tried to init the DefaultReconnectionHandler which needs this reconnect function, leading to some null refs.

@TanayParikh TanayParikh added area-blazor Includes: Blazor, Razor Components area-signalr Includes: SignalR clients and servers labels Sep 3, 2021
Copy link
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

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

Looks good.

I trust you've done due diligence to manually test this, since it's hard/impossible to test it with automation.

:shipit: as long as the signalr folks are happy with the changes there.

@TanayParikh
Copy link
Contributor Author

TanayParikh commented Sep 8, 2021

:shipit: as long as the signalr folks are happy with the changes there.

cc/ @BrennanConroy @halter73
#36126 (comment)

@TanayParikh TanayParikh enabled auto-merge (squash) September 13, 2021 19:10
@TanayParikh
Copy link
Contributor Author

/backport to release/6.0

@github-actions
Copy link
Contributor

Started backporting to release/6.0: https://github.com/dotnet/aspnetcore/actions/runs/1230887022

@github-actions
Copy link
Contributor

@TanayParikh backporting to release/6.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Fix Blazor Server Reconnection Mechanism
warning: Cannot merge binary files: src/Components/Web.JS/dist/Release/blazor.server.js (HEAD vs. Fix Blazor Server Reconnection Mechanism)
Using index info to reconstruct a base tree...
M	src/Components/Web.JS/dist/Release/blazor.server.js
M	src/Components/Web.JS/src/Boot.Server.ts
M	src/Components/Web.JS/src/Platform/Circuits/DefaultReconnectDisplay.ts
M	src/Components/Web.JS/src/Platform/Circuits/DefaultReconnectionHandler.ts
Falling back to patching base and 3-way merge...
Auto-merging src/Components/Web.JS/src/Platform/Circuits/DefaultReconnectionHandler.ts
Auto-merging src/Components/Web.JS/src/Platform/Circuits/DefaultReconnectDisplay.ts
Auto-merging src/Components/Web.JS/src/Boot.Server.ts
CONFLICT (content): Merge conflict in src/Components/Web.JS/src/Boot.Server.ts
Auto-merging src/Components/Web.JS/dist/Release/blazor.server.js
CONFLICT (content): Merge conflict in src/Components/Web.JS/dist/Release/blazor.server.js
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Fix Blazor Server Reconnection Mechanism
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@TanayParikh
Copy link
Contributor Author

@dotnet/aspnet-build could this please be merged. The helix test keeps timing out at 4 hours (tried retry).

The commit prior to the merge commit passed as expected: 259c84f

@dougbu
Copy link
Contributor

dougbu commented Sep 14, 2021

@TanayParikh I suspect the problem is a known issue. I retried the failed jobs because Core-Eng drained the macOS 10.14 queue.

@TanayParikh
Copy link
Contributor Author

TanayParikh commented Sep 14, 2021

@TanayParikh I suspect the problem is a known issue. I retried the failed jobs because Core-Eng drained the macOS 10.14 queue.

Ah okay. The backport PR is also facing the same issue of 4h timeouts on the helix queue. I've retriggered that as well, 🤞 it works as expected now.

#36489

@wtgodbe wtgodbe enabled auto-merge (squash) September 14, 2021 16:37
wtgodbe pushed a commit that referenced this pull request Sep 14, 2021
* Fix Blazor Server Reconnection Mechanism

* Fix documentation

* Update yarn.lock

* Update release.js

* Update blazor.server.js
@wtgodbe wtgodbe merged commit ed864ce into main Sep 14, 2021
@wtgodbe wtgodbe deleted the taparik/fixBlazorServerReconnection branch September 14, 2021 17:12
@ghost ghost added this to the 7.0-preview1 milestone Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components area-signalr Includes: SignalR clients and servers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

There is no Retry button in the page after reconnection to the server for blazor server project

6 participants