From 2de491aa7f8460f7ca99afb242e1c14f18e78e1b Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 15 Jul 2013 10:44:33 +0200 Subject: [PATCH] Use UnpooledByteBufAllocator as default --- .../src/main/java/io/netty/channel/DefaultChannelConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelConfig.java b/transport/src/main/java/io/netty/channel/DefaultChannelConfig.java index 076eb653f8..160f189dcc 100644 --- a/transport/src/main/java/io/netty/channel/DefaultChannelConfig.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelConfig.java @@ -16,7 +16,7 @@ package io.netty.channel; import io.netty.buffer.ByteBufAllocator; -import io.netty.buffer.PooledByteBufAllocator; +import io.netty.buffer.UnpooledByteBufAllocator; import io.netty.channel.socket.SocketChannelConfig; import java.util.IdentityHashMap; @@ -30,7 +30,7 @@ import static io.netty.channel.ChannelOption.*; */ public class DefaultChannelConfig implements ChannelConfig { - private static final ByteBufAllocator DEFAULT_ALLOCATOR = PooledByteBufAllocator.DEFAULT; + private static final ByteBufAllocator DEFAULT_ALLOCATOR = UnpooledByteBufAllocator.DEFAULT; private static final RecvByteBufAllocator DEFAULT_RCVBUF_ALLOCATOR = AdaptiveRecvByteBufAllocator.DEFAULT; private static final int DEFAULT_CONNECT_TIMEOUT = 30000;