dotnet / dotnet/aspnetcore

Log warnings on startup when Kestrel is badly configured

Open
#31,628 4 comments 0 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

This is a valid Kestrel configuration:

```cs
.ConfigureKestrel(options =>
{
options.Limits.Http2.MaxStreamsPerConnection = 32 * 1024;
});
```

Unfortunatly it will cause a client to send all its requests over one connection, causing contention and bad performance.

Consider:
* Analyizing Kestrel settings for ones that can be "valid" but misconfigured.
* Log warnings on startup when Kestrel has been configured with one of these values.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.