Revert Long Polling updates (1) (#23464)
parent
9da6886862
commit
b103083bdf
|
@ -45,12 +45,7 @@ Each circuit uses approximately 250 KB of memory for a minimal *Hello World*-sty
|
|||
|
||||
Blazor Server apps use ASP.NET Core SignalR to communicate with the browser. [SignalR's hosting and scaling conditions](xref:signalr/publish-to-azure-web-app) apply to Blazor Server apps.
|
||||
|
||||
Blazor works best when using WebSockets as the SignalR transport due to lower latency, reliability, and [security](xref:signalr/security). When deploying to Azure App Service, configure the app to use WebSockets in the Azure portal settings for the service. For details on configuring the app for Azure App Service, see the [SignalR publishing guidelines](xref:signalr/publish-to-azure-web-app).
|
||||
|
||||
> [!NOTE]
|
||||
> In earlier versions of ASP.NET Core, Long Polling was enabled as a fallback transport for situations in which the WebSockets transport wasn't available. If an app must use Long Polling, see <xref:blazor/fundamentals/signalr?pivots=server#long-polling> for configuration guidance.
|
||||
>
|
||||
> For more information, see [Disable Long Polling Fallback Transport for Blazor Server (ASP.NET Announcements)](https://github.com/aspnet/Announcements/issues/470).
|
||||
Blazor works best when using WebSockets as the SignalR transport due to lower latency, reliability, and [security](xref:signalr/security). Long Polling is used by SignalR when WebSockets isn't available or when the app is explicitly configured to use Long Polling. When deploying to Azure App Service, configure the app to use WebSockets in the Azure portal settings for the service. For details on configuring the app for Azure App Service, see the [SignalR publishing guidelines](xref:signalr/publish-to-azure-web-app).
|
||||
|
||||
#### Azure SignalR Service
|
||||
|
||||
|
@ -61,8 +56,6 @@ We recommend using the [Azure SignalR Service](xref:signalr/scale#azure-signalr-
|
|||
>
|
||||
> We recommend using WebSockets for Blazor Server apps deployed to Azure App Service. The [Azure SignalR Service](xref:signalr/scale#azure-signalr-service) uses WebSockets by default. If the app doesn't use the Azure SignalR Service, see <xref:signalr/publish-to-azure-web-app#configure-the-app-in-azure-app-service>.
|
||||
>
|
||||
> As of the release of ASP.NET Core 6.0, Long Polling isn't enabled by default. For more information, see the [SignalR configuration](#signalr-configuration) section.
|
||||
>
|
||||
> For more information, see:
|
||||
>
|
||||
> * [What is Azure SignalR Service?](/azure/azure-signalr/signalr-overview)
|
||||
|
|
|
@ -84,16 +84,10 @@ By default, there's no limit on the number of connections per user for a Blazor
|
|||
* Require authentication to connect to the app and keep track of the active sessions per user.
|
||||
* Reject new sessions upon reaching a limit.
|
||||
* Proxy WebSocket connections to an app through the use of a proxy, such as the [Azure SignalR Service](/azure/azure-signalr/signalr-overview) that multiplexes connections from clients to an app. This provides an app with greater connection capacity than a single client can establish, preventing a client from exhausting the connections to the server.
|
||||
* At the server level: Use a proxy/gateway in front of the app.
|
||||
* At the server level: Use a proxy/gateway in front of the app. For example, [Azure Front Door](/azure/frontdoor/front-door-overview) enables you to define, manage, and monitor the global routing of web traffic to an app and works when Blazor Server apps are configured to use Long Polling.
|
||||
|
||||
> [!NOTE]
|
||||
> Long Polling isn't enabled by default for Blazor Server apps.
|
||||
>
|
||||
> For more information, see the following resources:
|
||||
>
|
||||
> * <xref:blazor/host-and-deploy/server#signalr-configuration>
|
||||
> * <xref:blazor/fundamentals/signalr?pivots=server#long-polling>
|
||||
> * [Disable Long Polling Fallback Transport for Blazor Server (ASP.NET Announcements)](https://github.com/aspnet/Announcements/issues/470)
|
||||
> Although Long Polling is supported for Blazor Server apps, [WebSockets is the recommended transport protocol](xref:blazor/host-and-deploy/server#azure-signalr-service). [Azure Front Door](/azure/frontdoor/front-door-overview) doesn't support WebSockets at this time, but support for WebSockets is under consideration for a future release of the service.
|
||||
|
||||
## Denial of service (DoS) attacks
|
||||
|
||||
|
|
Loading…
Reference in New Issue