Avoid some closure allocations in SocketOutput
This commit is contained in:
parent
59cdd60af6
commit
fc346f7768
|
|
@ -293,7 +293,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
var _this = (WriteContext)state;
|
var _this = (WriteContext)state;
|
||||||
_this.WriteStatus = status;
|
_this.WriteStatus = status;
|
||||||
_this.WriteError = error;
|
_this.WriteError = error;
|
||||||
DoShutdownIfNeeded();
|
_this.DoShutdownIfNeeded();
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -316,9 +316,9 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
var _this = (WriteContext)state;
|
var _this = (WriteContext)state;
|
||||||
_this.ShutdownSendStatus = status;
|
_this.ShutdownSendStatus = status;
|
||||||
|
|
||||||
Self._log.ConnectionWroteFin(Self._connectionId, status);
|
_this.Self._log.ConnectionWroteFin(Self._connectionId, status);
|
||||||
|
|
||||||
DoDisconnectIfNeeded();
|
_this.DoDisconnectIfNeeded();
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue