.childOption(ChannelOption.TCP_NODELAY, true)
.childOption(ChannelOption.SO_SNDBUF, sendBufferSize)
.childOption(ChannelOption.SO_RCVBUF, receiveBufferSize)
.childOption(ChannelOption.ALLOCATOR, conf.getNettyAllocator())
.childOption(ChannelOption.RCVBUF_ALLOCATOR,
new AdaptiveRecvByteBufAllocator(receiveBufferSize / 4,
receiveBufferSize, receiveBufferSize));
/**
* Pipeline setup: depends on whether configured to use authentication
* or not.