user1533504
user1533504

Reputation: 41

Is this a bug in Netty 4.0.0 Alpha1?

I am trying 4.0.0 Alpha1. When I tried to run FactorialServer example, I found in method BigIntegerDecoder.decode, in.readableBytes() always return 0. After I debug, I found in

public void inboundBufferUpdated(ChannelHandlerContext ctx, ByteBuf in) throws Exception {
    callDecode(ctx, in, ctx.nextOutboundByteBuffer());
}

should it be?

 public void inboundBufferUpdated(ChannelHandlerContext ctx, ByteBuf in) throws Exception {
    callDecode(ctx, in, ctx.nextInboundByteBuffer());
}

Upvotes: 1

Views: 157

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23557

Yes its a bug.. I will fix it asap. Thanks!

Upvotes: 1

Related Questions