-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NettyIoExecutors
: allow passing 0 for N of IoThreads to infer defau…
…lt (#2630) Motivation: Netty's `MultithreadEventLoopGroup` already has a logic to identify the default number of EventLoop threads and exposes system properties to influence these numbers. Users of Netty based frameworks expect these properties to be taken into account: - `io.netty.eventLoopThreads` - `io.netty.availableProcessors` Modifications: - Allow users to pass `0` (zero) to `NettyIoExecutors.createIoExecutor`, which is recognized by Netty as a special value that considers system properties; Result: Users can use Netty's system properties to influence default Netty behavior for number of EvenLoop threads.
- Loading branch information
1 parent
0f49071
commit 8492622
Showing
2 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters