Skip to content

Blazor Server Side : automatic reconnection to the server #24103

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

Closed
vd3d opened this issue Jul 20, 2020 · 4 comments
Closed

Blazor Server Side : automatic reconnection to the server #24103

vd3d opened this issue Jul 20, 2020 · 4 comments
Labels
area-blazor Includes: Blazor, Razor Components investigate
Milestone

Comments

@vd3d
Copy link

vd3d commented Jul 20, 2020

Describe the bug

I have a Blazor server side app, when my computer sleep then wake-up... the server connection is lost.
From a "production" point of view... it is not acceptable, so I have try several possible solutions but none
really work.

  1. I have see the documentation about the Circuit, but didn't find any clear way to use it. ie when / how to use it for automatic reconnection. Can it be used for such purpose.

  2. I have see other posts here, like: (blazor) Failed to reconnect to the server #10325
    I have add the code proposed by @danroth27 , but no reconnection occur !

I have also check others like: https://stackoverflow.com/questions/58404533/how-can-i-change-the-could-not-reconnect-to-the-server-text-in-blazor

  1. Sometimes that are exception inside the application, it seems to break the whole application.
    After an exception, the whole application stop to work, any click on any button etc... nothing respond :-(

So, I'm looking for an example, and/or at least some guidance, to make the application way more robust.
;-)

Thanks a lot

To Reproduce

FYI, my app is online www.socloze.com , but can't go in production until I find a robust way to fix this :-(

Any help is really appreciated. Thx

@mkArtakMSFT mkArtakMSFT added the area-blazor Includes: Blazor, Razor Components label Jul 20, 2020
@mkArtakMSFT
Copy link
Contributor

Thanks for contacting us, @vd3d.
For #1, we have recently updated the documentation for Circuits. Please have a look at https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/additional-scenarios?view=aspnetcore-3.1#modify-the-reconnection-handler and let us know if you are still missing something in there.

For #2, which is your main concern, we will investigate this further and get back to you at a later time.

@ghost
Copy link

ghost commented Jul 20, 2020

Thanks for contacting us.
We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We will evaluate the request when we are planning the work for the next milestone. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@mkArtakMSFT
Copy link
Contributor

For #3 the behavior is by-design. The reason is that unhandled exceptions can potentially bring the application to an unknown state. Developers should make sure all calls which can potentially throw are handled.

@mkArtakMSFT
Copy link
Contributor

Hi. Thanks for contacting us.
We're closing this issue as there was not much community interest in this ask for quite a while now.
You can learn more about our triage process and how we handle issues by reading our Triage Process writeup.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components investigate
Projects
None yet
Development

No branches or pull requests

2 participants