diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/listener/http/HttpLongPollingDataChangedListener.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/listener/http/HttpLongPollingDataChangedListener.java index b2ea859ff67a..c0e7d05db54f 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/listener/http/HttpLongPollingDataChangedListener.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/listener/http/HttpLongPollingDataChangedListener.java @@ -364,6 +364,7 @@ public void run() { clients.remove(LongPollingClient.this); List changedGroups = compareChangedGroup((HttpServletRequest) asyncContext.getRequest()); sendResponse(changedGroups); + log.info("LongPollingClient {} ", GsonUtils.getInstance().toJson(changedGroups)); }, timeoutTime, TimeUnit.MILLISECONDS); clients.add(this); } catch (Exception ex) { diff --git a/shenyu-common/src/main/java/org/apache/shenyu/common/constant/HttpConstants.java b/shenyu-common/src/main/java/org/apache/shenyu/common/constant/HttpConstants.java index dd5e6413e49a..52412d855145 100644 --- a/shenyu-common/src/main/java/org/apache/shenyu/common/constant/HttpConstants.java +++ b/shenyu-common/src/main/java/org/apache/shenyu/common/constant/HttpConstants.java @@ -34,12 +34,12 @@ public final class HttpConstants { /** * The maximum timeout of server block is 60s. */ - public static final long SERVER_MAX_HOLD_TIMEOUT = TimeUnit.SECONDS.toMillis(10); + public static final long SERVER_MAX_HOLD_TIMEOUT = TimeUnit.SECONDS.toMillis(30); /** * Default connection timeout is 10s. */ - public static final long CLIENT_POLLING_CONNECT_TIMEOUT = TimeUnit.SECONDS.toMillis(20); + public static final long CLIENT_POLLING_CONNECT_TIMEOUT = TimeUnit.SECONDS.toMillis(90); /** * Default write timeout is 90s.