Skip to content

Commit

Permalink
Revert "allocate SocketAsyncEngine less frequenty to reduce the numbe…
Browse files Browse the repository at this point in the history
…r of epoll_wait threads (#2346)"

This reverts commit 34dbb20.
  • Loading branch information
adamsitnik authored Mar 20, 2020
1 parent 7ae0add commit 741b22a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 741b22a

Please sign in to comment.