Skip to content

Commit

Permalink
Remove incorrect comments about kestrel limits
Browse files Browse the repository at this point in the history
Presently, they can't conveniently be configured from appsettings.json.  There are [workarounds](dotnet/aspnetcore#4765), but none that seem worth recommending.

Fixes #31108
  • Loading branch information
amcasey authored Jan 31, 2024
1 parent e03b4f6 commit 706b8a3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions aspnetcore/fundamentals/servers/kestrel/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,6 @@ The Kestrel web server has constraint configuration options that are especially

Set constraints on the <xref:Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions.Limits%2A?displayProperty=nameWithType> property. This property holds an instance of the <xref:Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerLimits> class.

In examples shown later in this article, Kestrel options are configured in C# code. Kestrel options can also be set using a [configuration provider](xref:fundamentals/configuration/index). For example, the [File Configuration Provider](xref:fundamentals/configuration/index#file-configuration-provider) can load Kestrel configuration from an `appsettings.json` or `appsettings.{Environment}.json` file:

```json
{
"Kestrel": {
"Limits": {
"MaxConcurrentConnections": 100,
"MaxConcurrentUpgradedConnections": 100
},
"DisableStringReuse": true
}
}
```

By default, Kestrel configuration is loaded from the `Kestrel` section using a preconfigured set of configuration providers. For more information on the default set of configuration providers, see [Default configuration](xref:fundamentals/configuration/index#default-configuration).

> [!NOTE]
> <xref:Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> and [endpoint configuration](xref:fundamentals/servers/kestrel/endpoints) are configurable from configuration providers. Set other Kestrel configuration in C# code.
## General limits

### Keep-alive timeout
Expand Down

0 comments on commit 706b8a3

Please sign in to comment.