From f285b18f088cf2a006442800d9334dc9937340d0 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Mon, 3 Apr 2017 14:58:43 -0700 Subject: [PATCH] Ensure no data is written to a connection after uv_shutdown (#1600) --- .../Internal/Http/SocketOutputConsumer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv/Internal/Http/SocketOutputConsumer.cs b/src/Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv/Internal/Http/SocketOutputConsumer.cs index 6ff5c69ebb..c52ff69aed 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv/Internal/Http/SocketOutputConsumer.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv/Internal/Http/SocketOutputConsumer.cs @@ -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)