<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/request-timeouts-in-asp-net-core-p1pfhzrz4" -->

---
title: Request Timeouts in ASP.NET Core | daily.dev
description: ASP.NET Core does not enforce a default application-level timeout on incoming requests; only Kestrel transport limits and any reverse proxy timeouts apply...
canonical: https://daily.dev/posts/request-timeouts-in-asp-net-core-p1pfhzrz4
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Request Timeouts in ASP.NET Core | daily.dev
og:description: ASP.NET Core does not enforce a default application-level timeout on incoming requests; only Kestrel transport limits and any reverse proxy timeouts apply...
og:url: https://daily.dev/posts/request-timeouts-in-asp-net-core-p1pfhzrz4
og:image: https://api.daily.dev/og/posts/p1pFHZrZ4.png
og:image:alt: Request Timeouts in ASP.NET Core
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Request Timeouts in ASP.NET Core

**[Milan Jovanović](https://daily.dev/sources/milanjovanovic)** · 5 min read · 17 upvotes · 1 comments

## Summary

ASP.NET Core does not enforce a default application-level timeout on incoming requests; only Kestrel transport limits and any reverse proxy timeouts apply unless a timeout is explicitly configured. The built-in request timeout middleware, available since .NET 8, uses cooperative cancellation through HttpContext.RequestAborted, meaning it cancels a token rather than forcibly stopping code. Developers must manually propagate the CancellationToken into downstream work such as EF Core queries and HttpClient calls for the timeout to actually stop long-running operations. The post walks through registering AddRequestTimeouts, applying WithRequestTimeout globally or via named per-endpoint policies, disabling timeouts for streaming endpoints with DisableRequestTimeout, and notes that timeouts don't trigger while a debugger is attached.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://milanjovanovic.tech/blog/your-aspnetcore-endpoints-dont-have-a-timeout>

## Questions this post answers

### Does ASP.NET Core have a default timeout for incoming requests?

No, ASP.NET Core applies no default application-level deadline to request processing. Kestrel enforces its own transport-level limits, and a reverse proxy may impose a separate timeout, but developers must explicitly configure an application timeout, such as the request timeout middleware introduced in .NET 8, if endpoint execution needs a deadline.

_Developers hardening APIs against slow dependencies compare timeout strategies like this on daily.dev._

### Why does my ASP.NET Core endpoint still return 200 OK after the configured request timeout expires?

The request timeout middleware only cancels the token exposed through HttpContext.RequestAborted; it does not abort the thread or forcibly stop endpoint code. If the endpoint code, such as a Task.Delay or database call, does not accept and observe that cancellation token, it keeps running and can still return a successful response after the deadline has passed.

_Debugging cancellation quirks like this is easier when daily.dev surfaces real ASP.NET Core troubleshooting write-ups._

### Why doesn't my ASP.NET Core request timeout trigger when I'm testing it?

The request timeout middleware does not trigger while a debugger is attached to the process. To verify timeout behavior correctly, run the application without an attached debugger and force a slow call past the configured limit while checking logs or traces to confirm downstream cancellation.

_Catching debugger-only quirks like this is exactly what daily.dev helps .NET developers avoid missing._

## Similar posts on daily.dev

- [Using request timeouts middleware in web API](https://daily.dev/posts/using-request-timeouts-middleware-in-web-api-ijbjckoyi) · Damir's Corner · 5 upvotes · 1 comments
- [HttpClient Resilience in .NET 10: Timeout, Retry, and Circuit Breaker with Microsoft.Extensions.Http.Resilience](https://daily.dev/posts/httpclient-resilience-in-net-10-timeout-retry-and-circuit-breaker-with-microsoft-extensions-http-aszonhwdy) · We Are .NET · 5 upvotes · 0 comments
- [Mastering CancellationTokens in C\# and ASP.NET Core](https://daily.dev/posts/mastering-cancellationtokens-in-c-and-asp-net-core-ek9w4rchj) · ITNEXT · 24 upvotes · 0 comments
- [ASP.NET Core 11 Request Pipeline Performance Deep Dive](https://daily.dev/posts/asp-net-core-11-request-pipeline-performance-deep-dive-y8dxv0kx8) · C\# Corner · 3 upvotes · 0 comments

---

Tags: [#.net](https://daily.dev/tags/.net), [#aspnetcore](https://daily.dev/tags/aspnetcore)

[View this post on daily.dev](https://daily.dev/posts/request-timeouts-in-asp-net-core-p1pfhzrz4)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Request Timeouts in ASP.NET Core","url":"https://daily.dev/posts/request-timeouts-in-asp-net-core-p1pfhzrz4","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/request-timeouts-in-asp-net-core-p1pfhzrz4"},"datePublished":"2026-08-28T19:52:58.916Z","dateModified":"2026-09-13T21:48:35.476Z","description":"ASP.NET Core does not enforce a default application-level timeout on incoming requests; only Kestrel transport limits and any reverse proxy timeouts apply...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ecd035c729b1c4d7b3880eb3013f49a5?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ecd035c729b1c4d7b3880eb3013f49a5?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Milan Jovanović","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Milan Jovanović","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/78d8abfb692746538410dee47f93e566","url":"https://daily.dev/sources/milanjovanovic"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/request-timeouts-in-asp-net-core-p1pfhzrz4","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":17},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":".net,aspnetcore","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Milan Jovanović","item":"https://daily.dev/sources/milanjovanovic"},{"@type":"ListItem","position":3,"name":"Request Timeouts in ASP.NET Core"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/request-timeouts-in-asp-net-core-p1pfhzrz4#faq","mainEntity":[{"@type":"Question","name":"Does ASP.NET Core have a default timeout for incoming requests?","acceptedAnswer":{"@type":"Answer","text":"No, ASP.NET Core applies no default application-level deadline to request processing. Kestrel enforces its own transport-level limits, and a reverse proxy may impose a separate timeout, but developers must explicitly configure an application timeout, such as the request timeout middleware introduced in .NET 8, if endpoint execution needs a deadline. Developers hardening APIs against slow dependencies compare timeout strategies like this on daily.dev."}},{"@type":"Question","name":"Why does my ASP.NET Core endpoint still return 200 OK after the configured request timeout expires?","acceptedAnswer":{"@type":"Answer","text":"The request timeout middleware only cancels the token exposed through HttpContext.RequestAborted; it does not abort the thread or forcibly stop endpoint code. If the endpoint code, such as a Task.Delay or database call, does not accept and observe that cancellation token, it keeps running and can still return a successful response after the deadline has passed. Debugging cancellation quirks like this is easier when daily.dev surfaces real ASP.NET Core troubleshooting write-ups."}},{"@type":"Question","name":"Why doesn't my ASP.NET Core request timeout trigger when I'm testing it?","acceptedAnswer":{"@type":"Answer","text":"The request timeout middleware does not trigger while a debugger is attached to the process. To verify timeout behavior correctly, run the application without an attached debugger and force a slow call past the configured limit while checking logs or traces to confirm downstream cancellation. Catching debugger-only quirks like this is exactly what daily.dev helps .NET developers avoid missing."}}]}
```

