From 59b6562e0d5d8336e3ccfee3bed12415e6acbf3d Mon Sep 17 00:00:00 2001 From: hxy1991 Date: Tue, 18 Sep 2018 20:27:50 +0800 Subject: [PATCH] Fix #62 --- .../alibaba/nacos/client/config/impl/ServerHttpAgent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerHttpAgent.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerHttpAgent.java index 72261377b1a..8bb2cb6dae8 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerHttpAgent.java +++ b/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerHttpAgent.java @@ -95,7 +95,7 @@ public HttpResult httpGet(String path, List headers, List paramV new Object[] { serverListMgr.getCurrentServerAddr()}); throw ioe; } - } while (System.currentTimeMillis() > endTime); + } while (System.currentTimeMillis() <= endTime); log.error("NACOS-0002", LoggerHelper.getErrorCodeStr("NACOS", "NACOS-0002", "环境问题", "no available server")); @@ -137,7 +137,7 @@ public HttpResult httpPost(String path, List headers, List param throw ioe; } - } while (System.currentTimeMillis() > endTime); + } while (System.currentTimeMillis() <= endTime); log.error("NACOS-0002", LoggerHelper.getErrorCodeStr("NACOS", "NACOS-0002", "环境问题", "no available server")); @@ -179,7 +179,7 @@ public HttpResult httpDelete(String path, List headers, List par throw ioe; } - } while (System.currentTimeMillis() > endTime); + } while (System.currentTimeMillis() <= endTime); log.error("NACOS-0002", LoggerHelper.getErrorCodeStr("NACOS", "NACOS-0002", "环境问题", "no available server"));