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/23 11:45:57 UTC

[GitHub] [dubbo] owen200008 edited a comment on issue #8895: #8872 transfer layer session no close

owen200008 edited a comment on issue #8895:
URL: https://github.com/apache/dubbo/issues/8895#issuecomment-925735598


   第一个问题我希望的解法是
   1. 网络层close函数还是代表关闭的意思,不增加其他意图,引用计数的ReferenceCountExchangeClient的close逻辑只是多了一层引用计数的判断,如果为0了还是需要关闭
   2. 业务层(目前是协议层)决定网络层行为(持续连接还是非持续连接),因此分为下面三个类
   (2.1)ReferenceCountExchangeClient(未来还是希望以这个为主,更加纯粹)
   (2.2)NerverDieReferenceCountExchangeClient(为了兼容)
   (2.3)LazyConnectExchangeClient(废除了NerverDie后,这个逻辑也就非常简单就是贪婪模式)
   3. 为后续销毁reference(destroyAll)铺路
   4. 目前手动destroy的话,自动创建的invoke是不会销毁的,因此资源还是被占用的,但是后续如果销毁功能做好就没问题


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