Skip to content

HttpSys RequestAborted is not correct if created after the disconnect #17278

@Tratcher

Description

@Tratcher

HttpContext.RequestAborted in HttpSys is lazy initialized. This is fine if that happens before the disconnect, but if the disconnect has already happened then an uncancellable token is returned rather than a cancelled one.
https://github.com/aspnet/AspNetCore/blob/642fe1631d31a42e253fc383c392dd701a243a78/src/Servers/HttpSys/src/RequestProcessing/RequestContext.cs#L62-L72

Related: #16691

Metadata

Metadata

Assignees

Labels

affected-very-fewThis issue impacts very few customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsbugThis issue describes a behavior which is not expected - a bug.feature-httpsysseverity-nice-to-haveThis label is used by an internal tool

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions