Skip to content

为什么ChannelHander实现了channelRead()后,不显示释放ByteBuf引用呢? #92

Description

@Hao-Gi

大佬你好,我最近在学习Zfoo项目和Netty框架,我从书上看到继承了ChannelInboundHandlerAdapter重写了channelRead方法后需要显示调用ReferenceCountUtil.release(msg);去释放ByteBuf的引用,但看来该项目后发现好像没看到有类似操作,能麻烦说明下嘛...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions