Skip to content

Commit

Permalink
allocate SocketAsyncEngine less frequenty to reduce the number of epo…
Browse files Browse the repository at this point in the history
…ll_wait threads (#2346)
  • Loading branch information
adamsitnik authored Feb 5, 2020
1 parent 211b4b2 commit 34dbb20
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)32;
private static readonly IntPtr MinHandlesForAdditionalEngine = s_engineCount == 1 ? MaxHandles : (IntPtr)EventBufferCount;

//
// Sentinel handle value to identify events from the "shutdown pipe," used to signal an event loop to stop
Expand Down

0 comments on commit 34dbb20

Please sign in to comment.