Revert "allocate SocketAsyncEngine less frequenty to reduce the number of epoll_wait...
authorAdam Sitnik <adam.sitnik@gmail.com>
Fri, 20 Mar 2020 14:55:04 +0000 (15:55 +0100)
committerGitHub <noreply@github.com>
Fri, 20 Mar 2020 14:55:04 +0000 (15:55 +0100)
This reverts commit 34dbb20d83719e15bc1bd3976c6638bbee901a0b.

src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEngine.Unix.cs

index 8b4e207..9d5f48b 100644 (file)
@@ -105,7 +105,7 @@ namespace System.Net.Sockets
         //
         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