Signal the reader after aborting the connection (#1636)

- This will give it a chance to unwind gracefully before failing
with an invalid request.

Fixes #1632
This commit is contained in:
David Fowler 2017-04-08 01:22:06 -07:00 committed by GitHub
parent 27584dc620
commit 0fd885e5eb
1 changed files with 3 additions and 1 deletions

View File

@ -217,8 +217,10 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal
if (!normalRead)
{
Input.Complete(error);
var ignore = AbortAsync(error);
// Complete after aborting the connection
Input.Complete(error);
}
}