[change] 将GenClient与GenServer的最大协议大小由20M改为100M,解决单个表数据文件过大时,无法传输文件的问题

main v2022.5.0
walon 2022-05-07 18:34:01 +08:00
parent e3dc909514
commit 827eca027c
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ namespace Luban.Client.Common.Net
EventLoop = new EventLoop(null), EventLoop = new EventLoop(null),
InitHandler = ch => 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); ch.Pipeline.AddLast(Ins);
} }
}; };

View File

@ -51,7 +51,7 @@ namespace Luban.Server
InitChildrenHandler = (s, c) => 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); c.Pipeline.AddLast(this);
} }
}; };