From 741b22aa89f548baa9878e5ef10e521c7371abb8 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Fri, 20 Mar 2020 13:50:11 +0100 Subject: [PATCH] Revert "allocate SocketAsyncEngine less frequenty to reduce the number of epoll_wait threads (#2346)" This reverts commit 34dbb20d83719e15bc1bd3976c6638bbee901a0b. --- .../src/System/Net/Sockets/SocketAsyncEngine.Unix.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEngine.Unix.cs b/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEngine.Unix.cs index 8b4e20756f9bb..9d5f48b7045e3 100644 --- a/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEngine.Unix.cs +++ b/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEngine.Unix.cs @@ -105,7 +105,7 @@ public bool TryRegister(SafeSocketHandle socket, out Interop.Error error) // private static readonly IntPtr MaxHandles = IntPtr.Size == 4 ? (IntPtr)int.MaxValue : (IntPtr)long.MaxValue; #endif - private static readonly IntPtr MinHandlesForAdditionalEngine = s_engineCount == 1 ? MaxHandles : (IntPtr)EventBufferCount; + private static readonly IntPtr MinHandlesForAdditionalEngine = s_engineCount == 1 ? MaxHandles : (IntPtr)32; // // Sentinel handle value to identify events from the "shutdown pipe," used to signal an event loop to stop