-
Notifications
You must be signed in to change notification settings - Fork 9.9k
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Connection disconnected with error 'Error: Server timeout elapsed without receiving a message from the server.'. #42778
Comments
@MicroTrendsTom thanks for contacting us.
Nevermind, I saw it on your settings. Also, are you deploying to a single region within Azure and accessing from different continents? The first thing we would recommend would be to try to put servers closer to where your users are. Given that Blazor is a real-time framework, traffic across continents can make the experience suffer, since at such distances, even at the speed of light you have limitations, so each server roundtrip can result in a few hundred milliseconds of latency. Another thing to check is if there is a way to increment the timeout settings on the client, since I believe what is failing is the ping mechanism. @BrennanConroy is this possible? It might also help to capture the network traffic to try and detect if something is going on at the server when these things happen. (Is the app restarting/the server rebooting? Which will cause the existing circuits to get destroyed) Does the connection recover or do you need to refresh the page to make it go away? Does the problem persist after refreshing the page? |
Hi @MicroTrendsTom. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Hi Dedicated Signal R - yes as you saw. "Also, are you deploying to a single region within Azure and accessing from different continents?:" Client to Server ping times are 15ms to 30ms average - but line quality im not sure- jittering and so on. Side by side tests
"Another thing to check is if there is a way to increment the timeout settings on the client, since I believe what is failing is the ping mechanism. @BrennanConroy is this possible?" builder.Services.AddSignalR().AddAzureSignalR(options => "Does the connection recover or do you need to refresh the page to make it go away? Does the problem persist after refreshing the page?" the system always manages to reconnect 99% of the time. some settings here: Further tests this end:
|
Did you also change the client side code (serverTimeoutInMilliseconds) to not expect a ping for (recommended) double that time? |
Hi @MicroTrendsTom. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
1) Geo location test
|
That is not what I said, is this a typo? |
ok sorry what to set it to TimeSpan.FromSeconds(60) |
Changing this setting isn't going to help unless you also change the |
ok gotcha understood. or in program.cs builder ? |
@MicroTrendsTom You can do it like this <body>
...
<script src="_framework/blazor.server.js" autostart="false"></script>
<script>
Blazor.start({
configureSignalR: function (builder) {
builder.serverTimeoutInMilliseconds = ...
}
});
</script>
</body> |
ok awesome assistance guys thank you. Information summary from the above Why were defaults changed?
ad hoc changes were made and the end result....caused the issue. Actions: |
Quick system soak test for disconnect/reconnect based on the information and knowledge provided above It would seem that this is resolved albeit a very short test interval. |
@MicroTrendsTom thanks for the additional details. I am glad that we were able to figure out the cause of the issue. We will be improving the docs in this area as a result. @guardrex can you add something to the docs in the deployment section? I think the two important bits of information to add are:
|
sounds great - definitely the problem has been resolved by the above. Documentation on optimizing for mobile browser experience - would be a real win also Would be good if SiganlR could do geo scale out to provide clients nearest endpoint - without neccessarily adding a web app in that region too. |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
Is there an existing issue for this?
Describe the bug
Client Disconnect reconnect message on browser multiple times per minute in some cases
Very frequent disconnect reconnect issues that make the system unusable - unless very close proximity in the USA.
reports in other country's unusable - in Asia
Asia regions were stable prior .e.g. it could go all night no disconnect on soak tests.
but for the last 2 to 3months this is very bad. i have attempted to add code server side config forced sticky sessions and so on and on the app config side
This occurs within local debugging Dev, Stage and Production so im assuming its related to signalr connection.
i tried pretty much all of the info on the web i could find over many weeks, before submitting this issue- but to no avail as yet.
So i thought i would drop you a line thank you in advance
have gone all in on Azure + Blazor so this is mission critical for us :-)
Expected Behavior
very few disconnects if at all.
Steps To Reproduce
Navigate to from an Geo Asia location:
https://alphawebtrader.azurewebsites.net/
open a web console and view the output
wait for disconnect reconnect
Exceptions (if any)
Error: Connection disconnected with error 'Error: Server timeout elapsed without receiving a message from the server.'.
.NET Version
6
Anything else?
Visual Studio 2020
alphawebtrader.azurewebsites.net-1658144604996.log
2
Program.cs.txt
AlphaWebTrader.csproj.txt
The text was updated successfully, but these errors were encountered: