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/09/14 08:26:20 UTC

[GitHub] [dubbo] chickenlj commented on issue #8752: 一个消费端包含多个引用同一服务接口的DubboReference时,ReconnectTimerTask任务在服务端修订地址端口重新注册后仍然不断尝试连接旧地址

chickenlj commented on issue #8752:
URL: https://github.com/apache/dubbo/issues/8752#issuecomment-918929703


   我不确定为什么需要 destroyAll 接口:
   1. 如果 Directory.destroyAllInvokers() 被调用了,只是最终client关闭会稍微延迟一些,因为中间有一些invoker迭代过程,但这也符合未关闭的invoker的状态
   2. 如果只是 Directory.destroyUnusedInvokers() 被调用了,则会根据实际关闭的invoker数量决定client是否应该被关闭。
   
   > ReferenceCountExchangeClient的referenceCount大于1,只close一次只是把referenceCount减一而已,不会实际关闭。
   
   referenceCount 应该和 DubboInvoker 实例的数量严格相等,和reference多次没有关系吧?


-- 
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