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


   > @BurningCN 这个问题最主要是代码逻辑有问题,目前的逻辑心跳超时里的reconnect是永远无法reconnect的 
首先ReconnectTimerTask.doTask里的第一个if判断channel没连上才进的else判超时逻辑,然后reconnect里又重复判断channel没连上才能真正reconnect,那这种情况这个逻辑是永远无法reconnect的
   
   
的确,ReconnectTimerTask.doTask的else分支和reconnect方法是冲突的。我觉得可以改造下reconnect方法,在原有逻辑的基础上,支持强制重连的方式,直接disConnect+connect,不做额外的状态判断。比如搞一个boolean
 force参数


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to