Skip to content

Commit

Permalink
[type:fix] fix http config.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunlongn committed Oct 23, 2023
1 parent 20690cc commit 322e01e
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 322e01e

Please sign in to comment.