Skip to content

Commit

Permalink
java client's long polling timeout is 90 seconds, so server side long…
Browse files Browse the repository at this point in the history
… polling timeout must be less than 90 (apolloconfig#2630)
  • Loading branch information
nobodyiam authored and JaredTan95 committed Oct 1, 2019
1 parent bce744d commit 35e1302
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public int grayReleaseRuleScanInterval() {

public long longPollingTimeoutInMilli() {
int timeout = getIntProperty("long.polling.timeout", DEFAULT_LONG_POLLING_TIMEOUT);
return 1000 * checkInt(timeout, 1, Integer.MAX_VALUE, DEFAULT_LONG_POLLING_TIMEOUT);
// java client's long polling timeout is 90 seconds, so server side long polling timeout must be less than 90
return 1000 * checkInt(timeout, 1, 90, DEFAULT_LONG_POLLING_TIMEOUT);
}

public int itemKeyLengthLimit() {
Expand Down

0 comments on commit 35e1302

Please sign in to comment.