diff --git a/client/src/main/java/com/alibaba/nacos/client/naming/net/HttpClient.java b/client/src/main/java/com/alibaba/nacos/client/naming/net/HttpClient.java index 5cef3cb64..f24ac7dc4 100644 --- a/client/src/main/java/com/alibaba/nacos/client/naming/net/HttpClient.java +++ b/client/src/main/java/com/alibaba/nacos/client/naming/net/HttpClient.java @@ -38,8 +38,8 @@ import static com.alibaba.nacos.client.utils.LogUtils.NAMING_LOGGER; */ public class HttpClient { - public static final int TIME_OUT_MILLIS = Integer - .getInteger("com.alibaba.nacos.client.naming.ctimeout", 50000); + public static final int READ_TIME_OUT_MILLIS = Integer + .getInteger("com.alibaba.nacos.client.naming.rtimeout", 50000); public static final int CON_TIME_OUT_MILLIS = Integer .getInteger("com.alibaba.nacos.client.naming.ctimeout", 3000); private static final boolean ENABLE_HTTPS = Boolean @@ -73,7 +73,7 @@ public class HttpClient { setHeaders(conn, headers, encoding); conn.setConnectTimeout(CON_TIME_OUT_MILLIS); - conn.setReadTimeout(TIME_OUT_MILLIS); + conn.setReadTimeout(READ_TIME_OUT_MILLIS); conn.setRequestMethod(method); conn.setDoOutput(true); if (StringUtils.isNotBlank(body)) {