Skip to content

Commit

Permalink
Update DotNettyServerMessageListener.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
fanliang11 authored Jun 18, 2024
1 parent 635c8ff commit 63d8fbc
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public async Task StartAsync(EndPoint endPoint)
{
if (_logger.IsEnabled(LogLevel.Debug))
_logger.LogDebug($"准备启动服务主机,监听地址:{endPoint}。");
Environment.SetEnvironmentVariable("io.netty.allocator.numDirectArenas", "0");
IEventLoopGroup bossGroup = new MultithreadEventLoopGroup(1);
IEventLoopGroup workerGroup = new MultithreadEventLoopGroup();//Default eventLoopCount is Environment.ProcessorCount * 2
var bootstrap = new ServerBootstrap();
Expand Down

0 comments on commit 63d8fbc

Please sign in to comment.