2012-07-18 59 views
1

我正在嘗試4.0.0 Alpha1。當我試圖運行FactorialServer例如,我在方法 BigIntegerDecoder.decodein.readableBytes()總是返回0。我調試​​後,我在這是Netty 4.0.0 Alpha1中的錯誤嗎?

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

它應該是發現發現了什麼?

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

回答

1

是的它的錯誤..我會盡快解決它。謝謝!

+0

修正:https://github.com/netty/netty/commit/3447e8711227f83ff8d02a90078e376c3fbf5a0f – 2012-07-18 07:27:01

+0

感謝您的快速行動!我已將我的項目從3.5.1移植到4.0.0。因爲我的RC4解密使用ByteToByteDecoder。 Netty 4.0比以前好多了。偉大的作品!希望最終版本即將推出。 – user1533504 2012-07-19 02:15:09

+0

感謝您的反饋:) – 2012-07-19 06:16:09