ChannelBuffer out = bufferFactory.allocateBuffer(in.readableBytes() + buffer.readableBytes());
out.writeBytes(buffer);
out.writeBytes(in);
returnSendBuffer(buffer);
buffer = out;
log.debug("{} recv.reallocate: {}", this, out.writableBytes());
}
loop:
while (true) {
switch (mode) {
// zero signifies a reply to a source