Complete IPipeWriter in OutputProducer.Abort() (#1894)

- This prevents MemoryPoolBlocks from leaking when writes fail
This commit is contained in:
Stephen Halter 2017-06-12 11:12:01 -07:00 committed by GitHub
parent d879518a18
commit a97c08843c
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
_log.ConnectionDisconnect(_connectionId);
_completed = true;
_pipe.Reader.CancelPendingRead();
_pipe.Writer.Complete();
}
}