Complete IPipeWriter in OutputProducer.Abort() (#1894)
- This prevents MemoryPoolBlocks from leaking when writes fail
This commit is contained in:
parent
d879518a18
commit
a97c08843c
|
|
@ -95,6 +95,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
|
||||||
_log.ConnectionDisconnect(_connectionId);
|
_log.ConnectionDisconnect(_connectionId);
|
||||||
_completed = true;
|
_completed = true;
|
||||||
_pipe.Reader.CancelPendingRead();
|
_pipe.Reader.CancelPendingRead();
|
||||||
|
_pipe.Writer.Complete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue