We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大佬你好,我最近在学习Zfoo项目和Netty框架,我从书上看到继承了ChannelInboundHandlerAdapter重写了channelRead方法后需要显示调用ReferenceCountUtil.release(msg);去释放ByteBuf的引用,但看来该项目后发现好像没看到有类似操作,能麻烦说明下嘛...
The text was updated successfully, but these errors were encountered:
父类ByteToMessageCodec已经调用过release()方法了
Sorry, something went wrong.
使用的是 ByteToMessageDecoder 这个类底层会自动管理ByteBuf自动进行内存的释放,ByteToMessageDecoder 继承 ChannelInboundHandlerAdapter并增强了它的功能
确实,非常感谢!
No branches or pull requests
大佬你好,我最近在学习Zfoo项目和Netty框架,我从书上看到继承了ChannelInboundHandlerAdapter重写了channelRead方法后需要显示调用ReferenceCountUtil.release(msg);去释放ByteBuf的引用,但看来该项目后发现好像没看到有类似操作,能麻烦说明下嘛...
The text was updated successfully, but these errors were encountered: