Add StreamBufferCapacity doc option (#12577)
* Add StreamBufferCapacity doc option * 3.0 -> 2.X * modify moniker ranges * reorder moniker ranges * add missing commapull/12657/head
parent
7ff2ab2430
commit
02eb815e88
|
@ -5,7 +5,7 @@ description: Learn how to configure ASP.NET Core SignalR apps.
|
|||
monikerRange: '>= aspnetcore-2.1'
|
||||
ms.author: bradyg
|
||||
ms.custom: mvc
|
||||
ms.date: 04/15/2019
|
||||
ms.date: 06/03/2019
|
||||
uid: signalr/configuration
|
||||
---
|
||||
# ASP.NET Core SignalR configuration
|
||||
|
@ -55,6 +55,8 @@ MessagePack serialization can be configured by providing a delegate to the [AddM
|
|||
|
||||
The following table describes options for configuring SignalR hubs:
|
||||
|
||||
::: moniker range=">= aspnetcore-3.0"
|
||||
|
||||
| Option | Default Value | Description |
|
||||
| ------ | ------------- | ----------- |
|
||||
| `ClientTimeoutInterval` | 30 seconds | The server will consider the client disconnected if it hasn't received a message (including keep-alive) in this interval. It could take longer than this timeout interval for the client to actually be marked disconnected, due to how this is implemented. The recommended value is double the `KeepAliveInterval` value.|
|
||||
|
@ -62,6 +64,21 @@ The following table describes options for configuring SignalR hubs:
|
|||
| `KeepAliveInterval` | 15 seconds | If the server hasn't sent a message within this interval, a ping message is sent automatically to keep the connection open. When changing `KeepAliveInterval`, change the `ServerTimeout`/`serverTimeoutInMilliseconds` setting on the client. The recommended `ServerTimeout`/`serverTimeoutInMilliseconds` value is double the `KeepAliveInterval` value. |
|
||||
| `SupportedProtocols` | All installed protocols | Protocols supported by this hub. By default, all protocols registered on the server are allowed, but protocols can be removed from this list to disable specific protocols for individual hubs. |
|
||||
| `EnableDetailedErrors` | `false` | If `true`, detailed exception messages are returned to clients when an exception is thrown in a Hub method. The default is `false`, as these exception messages can contain sensitive information. |
|
||||
| `StreamBufferCapacity` | `10` | The maximum number of items that can be buffered for client upload streams. If this limit is reached, the processing of invocations is blocked until the server processes stream items.|
|
||||
|
||||
::: moniker-end
|
||||
|
||||
::: moniker range="<= aspnetcore-2.2"
|
||||
|
||||
| Option | Default Value | Description |
|
||||
| ------ | ------------- | ----------- |
|
||||
| `ClientTimeoutInterval` | 30 seconds | The server will consider the client disconnected if it hasn't received a message (including keep-alive) in this interval. It could take longer than this timeout interval for the client to actually be marked disconnected, due to how this is implemented. The recommended value is double the `KeepAliveInterval` value.|
|
||||
| `HandshakeTimeout` | 15 seconds | If the client doesn't send an initial handshake message within this time interval, the connection is closed. This is an advanced setting that should only be modified if handshake timeout errors are occurring due to severe network latency. For more detail on the handshake process, see the [SignalR Hub Protocol Specification](https://github.com/aspnet/SignalR/blob/master/specs/HubProtocol.md). |
|
||||
| `KeepAliveInterval` | 15 seconds | If the server hasn't sent a message within this interval, a ping message is sent automatically to keep the connection open. When changing `KeepAliveInterval`, change the `ServerTimeout`/`serverTimeoutInMilliseconds` setting on the client. The recommended `ServerTimeout`/`serverTimeoutInMilliseconds` value is double the `KeepAliveInterval` value. |
|
||||
| `SupportedProtocols` | All installed protocols | Protocols supported by this hub. By default, all protocols registered on the server are allowed, but protocols can be removed from this list to disable specific protocols for individual hubs. |
|
||||
| `EnableDetailedErrors` | `false` | If `true`, detailed exception messages are returned to clients when an exception is thrown in a Hub method. The default is `false`, as these exception messages can contain sensitive information. |
|
||||
|
||||
::: moniker-end
|
||||
|
||||
Options can be configured for all hubs by providing an options delegate to the `AddSignalR` call in `Startup.ConfigureServices`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue