Browse Source

去除堆内内存配置

xiuwei 3 years ago
parent
commit
8f53a21d4b

+ 0 - 2
protocol-core/src/main/java/wei/yigulu/netty/AbstractTcpMasterBuilder.java

@@ -128,8 +128,6 @@ public abstract class AbstractTcpMasterBuilder extends AbstractMasterBuilder {
 					.channel(NioSocketChannel.class)
 					.handler(getOrCreateChannelInitializer());
 			bootstrap.option(ChannelOption.SO_KEEPALIVE, false);
-			bootstrap.option(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT);
-			bootstrap.option(ChannelOption.RCVBUF_ALLOCATOR, AdaptiveRecvByteBufAllocator.DEFAULT);
 			bootstrap.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 1000);
 		}
 		return this.bootstrap;