# Kestrel Tuning

Adjusting Kestrel's limits, timeouts and protocols.

## What is **Kestrel Tuning**?

**Kestrel tuning** adjusts server limits such as maximum request body size, connection counts, timeouts and HTTP/2 or HTTP/3 settings.

```csharp
builder.WebHost.ConfigureKestrel(o => o.Limits.MaxRequestBodySize = 2 * 1024 * 1024);
```

Level: Master · [More ASP.NET Core terms at this level](https://www.ask-codey.com/glossary?category=aspnet-core&level=5)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/kestrel-tuning
