Skip to content
New issue

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

the method channelRead0 block the method channelInactive in class SimpleChannelInboundHandler #12706

Open
youjile opened this issue Aug 17, 2022 · 0 comments

Comments

@youjile
Copy link

youjile commented Aug 17, 2022

当类SimpleChannelInboundHandler中的channelRead0方法正在执行的时候,客户端突然退出了,这时候channelInactive方法一定要等到channelRead0执行完成后才能被触发,这种情况会导致客户端 退出的时候一些缓存得不到及时释放,我不知道netty的机制是不是本身就是如此,是否有机制使channelInactive方法不受channelRead0方法的影响。
When the class SimpleChannelInboundHandler channelRead0 method is executed, the client suddenly quit, then channelInactive method must wait until channelRead0 after completion of execution can be triggered, This will cause some caches to not be released in time when the client exits. I don't know if the Netty mechanic itself is like that, Is there a mechanism to make the channelInactive method independent of the channelRead0 method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant