From 63d8fbcb99e23e1578a27a723aa4ae08c0476850 Mon Sep 17 00:00:00 2001 From: fanliang11 <137629448@qq.com> Date: Tue, 18 Jun 2024 14:04:29 +0800 Subject: [PATCH] Update DotNettyServerMessageListener.cs --- .../Surging.Core.DotNetty/DotNettyServerMessageListener.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Surging.Core/Surging.Core.DotNetty/DotNettyServerMessageListener.cs b/src/Surging.Core/Surging.Core.DotNetty/DotNettyServerMessageListener.cs index 0e2c5864..7e166393 100644 --- a/src/Surging.Core/Surging.Core.DotNetty/DotNettyServerMessageListener.cs +++ b/src/Surging.Core/Surging.Core.DotNetty/DotNettyServerMessageListener.cs @@ -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();