Modify HttpContentDecoder to writeInbound and readInbound from its internal decoder

This commit is contained in:
Derek Troy-West 2013-07-16 23:47:46 +10:00 committed by Norman Maurer
parent dcf7896172
commit 8e71186153

View File

@ -214,7 +214,7 @@ public abstract class HttpContentDecoder extends MessageToMessageDecoder<HttpObj
private void decode(ByteBuf in, List<Object> out) {
// call retain here as it will call release after its written to the channel
decoder.writeOutbound(in.retain());
decoder.writeInbound(in.retain());
fetchDecoderOutput(out);
}
@ -228,7 +228,7 @@ public abstract class HttpContentDecoder extends MessageToMessageDecoder<HttpObj
private void fetchDecoderOutput(List<Object> out) {
for (;;) {
ByteBuf buf = (ByteBuf) decoder.readOutbound();
ByteBuf buf = (ByteBuf) decoder.readInbound();
if (buf == null) {
break;
}