Skip to content

Commit 706b8a3

Browse files
authored
Remove incorrect comments about kestrel limits
Presently, they can't conveniently be configured from appsettings.json. There are [workarounds](dotnet/aspnetcore#4765), but none that seem worth recommending. Fixes #31108
1 parent e03b4f6 commit 706b8a3

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

aspnetcore/fundamentals/servers/kestrel/options.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,6 @@ The Kestrel web server has constraint configuration options that are especially
1818

1919
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.
2020

21-
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:
22-
23-
```json
24-
{
25-
"Kestrel": {
26-
"Limits": {
27-
"MaxConcurrentConnections": 100,
28-
"MaxConcurrentUpgradedConnections": 100
29-
},
30-
"DisableStringReuse": true
31-
}
32-
}
33-
```
34-
35-
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).
36-
37-
> [!NOTE]
38-
> <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.
39-
4021
## General limits
4122

4223
### Keep-alive timeout

0 commit comments

Comments
 (0)