viviel opened a new pull request #148:
URL: https://github.com/apache/incubator-tubemq/pull/148


   If the broker fails to register with the master, a total of 5 reconnections 
will be attempted. But I think we should pause the thread for a period of time 
every time the connection fails to be reconnected
   ```
   for (int i; i < reconnectionTimes; i++) {
       try {
           tryConnect();
       } catch (Throwable e) {
           try {
               TimeUnit.MILLISECONDS.sleep(200);
           } catch (InterruptedException ignored) {
               //ignore interrupted
           }
       }
   }
   ```


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to