Skip to content

DefaultHttpResponse.StartAsync without feature #7778

Closed
@JamesNK

Description

@JamesNK

If there is no IHttpResponseStartFeature then StartAsync will call Body.FlushAsync every time. Should it only call Body.FlushAsync if HasStarted is false?

https://github.com/aspnet/AspNetCore/blob/25f1f593783de4819a1e8e30dc09af7388cc68b3/src/Http/Http/src/Internal/DefaultHttpResponse.cs#L147-L155

Metadata

Metadata

Assignees

Labels

area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-pipelinesAnything relating to exposing/using Pipes in ASP.NET Core

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions