Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit f85f123

Browse files
committed
Remove closure alloc
1 parent e237112 commit f85f123

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.AspNet.Server.Kestrel/Http/SocketOutput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public void DoShutdownIfNeeded()
370370
var _this = (WriteContext)state;
371371
_this.ShutdownSendStatus = status;
372372

373-
_this.Self._log.ConnectionWroteFin(Self._connectionId, status);
373+
_this.Self._log.ConnectionWroteFin(_this.Self._connectionId, status);
374374

375375
_this.DoDisconnectIfNeeded();
376376
}, this);

src/Microsoft.AspNet.Server.Kestrel/Networking/UvWriteReq.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Networking
1414
/// </summary>
1515
public class UvWriteReq : UvRequest
1616
{
17-
private readonly static Libuv.uv_write_cb _uv_write_cb = UvWriteCb;
17+
private readonly static Libuv.uv_write_cb _uv_write_cb = (IntPtr ptr, int status) => UvWriteCb(ptr, status);
1818

1919
private IntPtr _bufs;
2020

0 commit comments

Comments
 (0)