Ensure no data is written to a connection after uv_shutdown (#1600)

This commit is contained in:
Stephen Halter 2017-04-03 14:58:43 -07:00 committed by GitHub
parent c7113e1c60
commit f285b18f08
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
// Send a FIN
await ShutdownAsync();
// Ensure no data is written after uv_shutdown
break;
}
if (buffer.IsEmpty && result.IsCompleted)