From 3f414782b908c51bfbb99873b664f1e92a98ad33 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Sun, 24 Jan 2016 14:49:25 +0000 Subject: [PATCH] Remove spinning for blocked socket ops As per https://github.com/dotnet/corefx/pull/5655 --- src/Microsoft.AspNetCore.Server.Kestrel/Http/SocketInput.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Http/SocketInput.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Http/SocketInput.cs index 94e335b345..3860c9b67c 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Http/SocketInput.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Http/SocketInput.cs @@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http private readonly MemoryPool2 _memory; private readonly IThreadPool _threadPool; - private readonly ManualResetEventSlim _manualResetEvent = new ManualResetEventSlim(false); + private readonly ManualResetEventSlim _manualResetEvent = new ManualResetEventSlim(false, 0); private Action _awaitableState; private Exception _awaitableError;