-
Notifications
You must be signed in to change notification settings - Fork 221
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
RpcClient#shutdown 极端情况可能会出现hang死情况 #65
Comments
感谢反馈,我们review 一下这个情况 |
确认, 需要升级netty最版本 |
RpcClient建立连接过程中是同步等待在这里:
如果上述连接未建立完成/连接失败,并且RpcClient过早暴露并被其他线程执行shutdown,上面的线程无法再被唤醒。
无法被唤醒的具体原因是依赖的Netty 4.0.27.Final shutdown 的时候没有处理未完成连接的channel等待的DefaultChannelPromise。最新版的Netty已经修复这个bug。
Bug复现:
环境信息
纯Netty版复现:
The text was updated successfully, but these errors were encountered: