Skip to content

Commit

Permalink
Merge branch 'fix-http-sync' of https://github.com/moremind/shenyu in…
Browse files Browse the repository at this point in the history
…to fix-http-sync
  • Loading branch information
moremind committed Oct 23, 2023
2 parents 15b8044 + 322e01e commit c7897d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ public void run() {
clients.remove(LongPollingClient.this);
List<ConfigGroupEnum> changedGroups = compareChangedGroup((HttpServletRequest) asyncContext.getRequest());
sendResponse(changedGroups);
log.info("LongPollingClient {} ", GsonUtils.getInstance().toJson(changedGroups));
}, timeoutTime, TimeUnit.MILLISECONDS);
clients.add(this);
} catch (Exception ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c7897d2

Please sign in to comment.