Commit 35e13020 authored by Jason Song's avatar Jason Song Committed by Jared Tan

java client's long polling timeout is 90 seconds, so server side long polling...

java client's long polling timeout is 90 seconds, so server side long polling timeout must be less than 90 (#2630)
parent bce744df
...@@ -61,7 +61,8 @@ public class BizConfig extends RefreshableConfig { ...@@ -61,7 +61,8 @@ public class BizConfig extends RefreshableConfig {
public long longPollingTimeoutInMilli() { public long longPollingTimeoutInMilli() {
int timeout = getIntProperty("long.polling.timeout", DEFAULT_LONG_POLLING_TIMEOUT); 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() { public int itemKeyLengthLimit() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment