Skip to content

Commit 380422f

Browse files
Copilotwadepickett
andauthored
Add rate-limiting fixes include file for preview4
Agent-Logs-Url: https://github.com/dotnet/AspNetCore.Docs/sessions/ff6f5db4-b8a9-4897-bae7-31d2ce227450 Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
1 parent e9ddee7 commit 380422f

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

aspnetcore/release-notes/aspnetcore-11.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: wadepickett
55
description: Learn about the new features in ASP.NET Core in .NET 11.
66
ms.author: wpickett
77
ms.custom: mvc
8-
ms.date: 05/13/2026
8+
ms.date: 05/14/2026
99
uid: aspnetcore-11
1010
---
1111
# What's new in ASP.NET Core in .NET 11
@@ -80,6 +80,8 @@ This section describes miscellaneous new features in .NET 11.
8080

8181
[!INCLUDE[](~/release-notes/aspnetcore-11/includes/runtime-async-shared-framework-preview4.md)]
8282

83+
[!INCLUDE[](~/release-notes/aspnetcore-11/includes/rate-limiting-retry-after-preview4.md)]
84+
8385
## Breaking changes
8486

8587
Use the articles in [Breaking changes in .NET](/dotnet/core/compatibility/breaking-changes) to find breaking changes that might apply when upgrading an app to a newer version of .NET.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Rate-limiting middleware returns accurate `Retry-After` headers
2+
3+
The <xref:System.Threading.RateLimiting.FixedWindowRateLimiter> now reports a <xref:System.Threading.RateLimiting.MetadataName.RetryAfter> metadata value that accurately reflects the next window boundary. The rate-limiting middleware uses this metadata to set the `Retry-After` response header, so clients that exceed the rate limit automatically receive a meaningful retry interval without any extra configuration.
4+
5+
Previously, the `RetryAfter` metadata wasn't reliably set, which meant rejected responses either lacked the header or contained an unhelpful value. With this fix, any app that uses the rate-limiting middleware with a <xref:System.Threading.RateLimiting.FixedWindowRateLimiter> benefits from correct `Retry-After` headers automatically.
6+
7+
Additional fixes in `System.Threading.RateLimiting` resolve an issue where <xref:System.Threading.RateLimiting.TokenBucketRateLimiter> mishandled partial token refills during zero-permit acquisition, and improve <xref:System.Threading.RateLimiting.ChainedRateLimiter%601> to correctly forward idle-duration and replenishment behavior from its inner limiters.
8+
9+
For more information, see [Rate limiting middleware in ASP.NET Core](/aspnet/core/performance/rate-limit).
10+
11+
Thank you [@asbjornvad](https://github.com/asbjornvad) and [@apoorvdarshan](https://github.com/apoorvdarshan) for these contributions!

0 commit comments

Comments
 (0)