Check if HTTP/2 frame writer has already been aborted.

This commit is contained in:
Cesar Blum Silveira 2017-09-19 14:09:09 -07:00 committed by Cesar Blum Silveira
parent 9944c0fd43
commit 9687079723
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2
{
lock (_writeLock)
{
if (_completed)
{
return;
}
_completed = true;
_outputReader.CancelPendingRead();
_outputWriter.Complete(ex);