You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/11/16 06:52:25 UTC

[GitHub] [dubbo] BurningCN commented on issue #9278: dubbo心跳超时重连bug

BurningCN commented on issue #9278:
URL: https://github.com/apache/dubbo/issues/9278#issuecomment-969929283


   情况1:正常情况,心跳空闲超时之后,服务端会触发空闲事件,从而发起channel的关闭操作,使得客户端是能收到断连事件的,触发channelInActive方法的,从而更新channel的状态。因此可以正常发起重连。
   情况2:服务端宕机,无法正常触发服务端主动关闭的流程,但是客户端的NettyClientHandler还是会触发channelInActive方法的,从而更新channel的状态。因此可以正常发起重连
   
   而如你描述的情况,你将服务端断点停住,本身测试的逻辑就有点问题,服务端本身并没有宕机,客户端和服务端还是链接着的。所以客户端无法发起重连。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org