dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.59k stars 10.06k forks source link

Add SendFileAsync Pipe fallback #6954

Open jkotalik opened 5 years ago

jkotalik commented 5 years ago

If the SendFile feature isn't implemented, it falls back to Streams today. We would like this to first fall back to pipes first if present. This isn't much of a problem for HttpSys because it implements the SendFile feature already.

Tratcher commented 4 years ago

For reference: https://github.com/dotnet/aspnetcore/blob/cd61ed769ab5fadcd7164fd395178442f1079b8d/src/Servers/Kestrel/Core/src/Internal/Http/HttpProtocol.FeatureCollection.cs#L333-L336