From fc346f7768f7b9a4a7ae921434cfee45972324b0 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Tue, 10 Nov 2015 15:46:28 -0800 Subject: [PATCH] Avoid some closure allocations in SocketOutput --- src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs b/src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs index 2871341dbd..d2534206e1 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs @@ -293,7 +293,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http var _this = (WriteContext)state; _this.WriteStatus = status; _this.WriteError = error; - DoShutdownIfNeeded(); + _this.DoShutdownIfNeeded(); }, this); } @@ -316,9 +316,9 @@ namespace Microsoft.AspNet.Server.Kestrel.Http var _this = (WriteContext)state; _this.ShutdownSendStatus = status; - Self._log.ConnectionWroteFin(Self._connectionId, status); + _this.Self._log.ConnectionWroteFin(Self._connectionId, status); - DoDisconnectIfNeeded(); + _this.DoDisconnectIfNeeded(); }, this); }