guohao commented on issue #8124:
URL: https://github.com/apache/dubbo/issues/8124#issuecomment-875724629
> such as:
>
> ```
> public void connectSync() {
> this.initPromise.awaitUninterruptibly(this.connectTimeout);
> long start = System.currentTimeMillis();
> while (!isAvailable()) {
> if(System.currentTimeMillis() - start <= connectTimeout) {
> Thread.yield();
> }
> }
> }
> ```
All threads will wait as long as `connecTimeout` when the downstream service
is unavailable.
A passthrough `Promise` will be better in some negotiation scenarios such as
H/2, ,the `Connection` will be available when the promise has been done
@xiaoheng1
--
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]