context.sendDownstream(evt);
return;
}
MessageEvent e = (MessageEvent) evt;
ChannelBufferOutputStream bout =
new ChannelBufferOutputStream(dynamicBuffer(estimatedLength));
bout.write(LENGTH_PLACEHOLDER);
ObjectOutputStream oout = new CompactObjectOutputStream(bout);
oout.writeObject(e.getMessage());
oout.flush();
oout.close();
ChannelBuffer msg = bout.buffer();
msg.setInt(0, msg.writerIndex() - 4);
write(context, e.getChannel(), e.getFuture(), msg);
}