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/07/07 15:57:39 UTC

[GitHub] [dubbo] guohao commented on issue #8124: Fix the problem that in the Triple protocol, an error will be reported immediately when the service is exposed

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