songzhiying commented on issue #10842:
URL: https://github.com/apache/dubbo/issues/10842#issuecomment-1294756469
> Related with #8813
我有一点点不理解的地方,按照正常的来说,我们ReferenceCountExchangeClient关闭了之后会调用replaceWithLazyClient,这时候会将ReferenceCountExchangeClient中的client替换成LazyConnectExchangeClient,在下次调用的时候,referenceCountExchangeClient
== null || referenceCountExchangeClient.isClosed()
走到这个判断,会调用到LazyConnectExchangeClient的isclose。这时候LazyConnectExchangeClient的client为null
,导致返回false。使得一直使用的都是调用是LazyConnectExchangeClient的client为null
的Client,这时候,LazyConnectExchangeClient
request会一直initClient。我有点不是太理解,我看我之前用的2.7.3.1的时候,这时候LazyConnectExchangeClient的client为null会返回true,导致他会调用buildReferenceCountExchangeClient
重新new ReferenceCountExchangeClient。相比之下,是哪个会更合理点呢?
--
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]