Skip to content

Commit

Permalink
[type:fix] e2e test error
Browse files Browse the repository at this point in the history
  • Loading branch information
moremind committed Oct 22, 2023
1 parent 48db706 commit a7ecb27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ class LongPollingClient implements Runnable {
@Override
public void run() {
try {
this.asyncTimeoutFuture = scheduler.scheduleWithFixedDelay(() -> {
this.asyncTimeoutFuture = scheduler.schedule(() -> {
clients.remove(LongPollingClient.this);
List<ConfigGroupEnum> changedGroups = compareChangedGroup((HttpServletRequest) asyncContext.getRequest());
sendResponse(changedGroups);
}, 0, timeoutTime, TimeUnit.MILLISECONDS);
}, timeoutTime, TimeUnit.MILLISECONDS);
clients.add(this);
} catch (Exception ex) {
log.error("add long polling client error", ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class HttpConstants {
/**
* The maximum timeout of server block is 60s.
*/
public static final long SERVER_MAX_HOLD_TIMEOUT = TimeUnit.SECONDS.toMillis(30);
public static final long SERVER_MAX_HOLD_TIMEOUT = TimeUnit.SECONDS.toMillis(60);

/**
* Default connection timeout is 10s.
Expand Down

0 comments on commit a7ecb27

Please sign in to comment.