This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
FrameRequestStream/HttpRequestStream is not compatible with CryptoStream #2341
Closed
Description
System.NotSupportedException: Specified method is not supported.
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.FrameRequestStream.Flush()
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
CryptoStream.Dispose
is calling Flush
on the underlying stream even if said stream is read only - https://github.com/dotnet/corefx/issues/27326
Apparently this is intended behavior of CryptoStream
and Flush
shouldn't ever throw exceptions: dotnet/corefx#27327 (review)