You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/06/07 08:05:41 UTC

[GitHub] [dolphinscheduler] chengshiwen commented on a change in pull request #5594: [Fix-5468][Common] Fix obtaining IP is incorrect

chengshiwen commented on a change in pull request #5594:
URL: https://github.com/apache/dolphinscheduler/pull/5594#discussion_r646360266



##########
File path: dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/NetUtils.java
##########
@@ -130,7 +128,7 @@ private static synchronized InetAddress getLocalAddress0() {
                     Optional<InetAddress> addressOp = toValidAddress(addresses.nextElement());
                     if (addressOp.isPresent()) {
                         try {
-                            if (addressOp.get().isReachable(100)) {
+                            if (addressOp.get().isReachable(300)) {

Review comment:
       I changed it to 200. I have tested several times before that in some cases, 100 will time out but 200 will not




-- 
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:
users@infra.apache.org