parent
e3dc909514
commit
827eca027c
|
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue