Closed
Description
Describe the bug
Very similar to aspnet/KestrelHttpServer#2341 (PR aspnet/KestrelHttpServer#2342) the ReferenceReadStream
does throw a NotSupportedException
in its Flush
method when it should not.
To Reproduce
using(var cs = new CryptoStream(formFile.OpenReadStream(), ...))
{
throw new Exception("stream has not been read completely and therefore CryptoStream will call Flush");
}
This should not trigger a NotSupportedException
.
Further technical details
- ASP.NET Core version 2.1.x on .NET Framework 4.7.2