From 827eca027c1e493aa6af6cc08bdf48da3c5229b1 Mon Sep 17 00:00:00 2001 From: walon Date: Sat, 7 May 2022 18:34:01 +0800 Subject: [PATCH] =?UTF-8?q?[change]=20=E5=B0=86GenClient=E4=B8=8EGenServer?= =?UTF-8?q?=E7=9A=84=E6=9C=80=E5=A4=A7=E5=8D=8F=E8=AE=AE=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E7=94=B120M=E6=94=B9=E4=B8=BA100M=EF=BC=8C=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=8D=95=E4=B8=AA=E8=A1=A8=E6=95=B0=E6=8D=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=BF=87=E5=A4=A7=E6=97=B6=EF=BC=8C=E6=97=A0=E6=B3=95=E4=BC=A0?= =?UTF-8?q?=E8=BE=93=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Client/Source/Net/GenClient.cs | 2 +- src/Luban.Server/Source/GenServer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Luban.Client/Source/Net/GenClient.cs b/src/Luban.Client/Source/Net/GenClient.cs index 594095b..88b8c43 100644 --- a/src/Luban.Client/Source/Net/GenClient.cs +++ b/src/Luban.Client/Source/Net/GenClient.cs @@ -48,7 +48,7 @@ namespace Luban.Client.Common.Net EventLoop = new EventLoop(null), InitHandler = ch => { - ch.Pipeline.AddLast(new ProtocolFrameCodec(20_000_000, new RecycleByteBufPool(100, 10), new DefaultProtocolAllocator(factories))); + ch.Pipeline.AddLast(new ProtocolFrameCodec(100 * 1024 * 1024, new RecycleByteBufPool(100, 10), new DefaultProtocolAllocator(factories))); ch.Pipeline.AddLast(Ins); } }; diff --git a/src/Luban.Server/Source/GenServer.cs b/src/Luban.Server/Source/GenServer.cs index 59ba72f..e1540ec 100644 --- a/src/Luban.Server/Source/GenServer.cs +++ b/src/Luban.Server/Source/GenServer.cs @@ -51,7 +51,7 @@ namespace Luban.Server InitChildrenHandler = (s, c) => { - c.Pipeline.AddLast(new ProtocolFrameCodec(20_000_000, new RecycleByteBufPool(100, 100), new DefaultProtocolAllocator(factories))); + c.Pipeline.AddLast(new ProtocolFrameCodec(100 * 1024 * 1024, new RecycleByteBufPool(100, 100), new DefaultProtocolAllocator(factories))); c.Pipeline.AddLast(this); } };