guohao commented on issue #8124: URL: https://github.com/apache/dubbo/issues/8124#issuecomment-876375662
> But if we only use initPromise to determine whether the connection is completed, there will be a Connect to %s failed error with a high probability. Because the thread where connection.onConnected is called and org.apache.dubbo.rpc.protocol.tri.TripleInvoker #doInvoke is not in the same thread. So my initial idea is to block the connectTimeout time to ensure that the connection must be available or unavailable. That is why `A passthrough Promise` is needed, set the Connection when is available and block the `connectSync` method. -- 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]
