-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Blazor Server website always displays connection redirecting UI after page load #30483
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
Comments
I end up with multiple connects; one per new node (fresh data) opened themesof_Trim.mp4 |
Ignoring the disconnects it is working ok (e.g. loading the nodes etc) It does send some chonk messages Looking at that might be busting the 32kB limit aspnetcore/src/SignalR/common/Http.Connections/src/HttpConnectionDispatcherOptions.cs Lines 14 to 29 in c925f99
Looking at #5623 (comment); you may need to up these limits in Configure app.UseSignalR(route => route.MapHub<BlazorHub>(BlazorHub.DefaultPath, o =>
{
o.ApplicationMaxBufferSize = 131072; // larger size
o.TransportMaxBufferSize = 131072; // larger size
}));
app.UseBlazor<App.Startup>(); |
Specifically In services.AddServerSideBlazor()
.AddHubOptions(options =>
{
// Increase the limits to 256 kB
options.MaximumReceiveMessageSize = 262144;
}); and in endpoints.MapBlazorHub(options =>
{
// Increase the limits to 256 kB
options.ApplicationMaxBufferSize = 262144;
options.TransportMaxBufferSize = 262144;
}); |
This is likely the message going up exceeding the underlying max message size as @benaadams image shows. Do we know what's causing such a big message to be sent? |
The list of open nodes ThemesOfDotNet/Pages/Index.razor.cs#L572-L579 With all the nodes closed there isn't a big post from the client With all of them open there is a 33.9kB post (followed by a 468 kB response with the data for the open nodes)
For the first large message on startup it does look like |
@javiercn moved this to the |
Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core framework, which hasn't been addressed yet, please file a new issue. This issue will be locked after 30 more days of inactivity. If you still wish to discuss this subject after then, please create a new issue! |
Describe the bug
https://themesof.net/ always displays the connection reconnecting UI after page load. It is displayed for a couple of seconds and then disappears.
Is Blazor Server being too aggressive with assuming a lost connection?
To Reproduce
Further technical details
Website source: https://github.com/terrajobst/themesof.net
@terrajobst
The text was updated successfully, but these errors were encountered: