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 (dotnet#2346)" (dotnet#33855)

This reverts commit 34dbb20.
  • Loading branch information
adamsitnik authored Mar 20, 2020
1 parent 70193ba commit 4e098c9
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 4e098c9

Please sign in to comment.