Skip to content

Commit cfc664a

Browse files
ludochgae-java-bot
authored andcommitted
Increase HTTP idle timeout for api calls to 58secs, still being lower than the 60s on server side.
PiperOrigin-RevId: 738818545 Change-Id: I9144dc351f94416ffcb83eadb6511a256de81b7a
1 parent c1d06d9 commit cfc664a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/runtime_impl_jetty12/src/main/java/com/google/apphosting/runtime/http/JettyHttpApiHostClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private JettyHttpApiHostClient(String url, HttpClient httpClient, Config config)
7272
static JettyHttpApiHostClient create(String url, Config config) {
7373
Preconditions.checkNotNull(url);
7474
HttpClient httpClient = new HttpClient();
75-
long idleTimeout = 25000; // 25 seconds, should be less than 30 or 60 used server-side.
75+
long idleTimeout = 58000; // 58 seconds, should be less than 60 used server-side.
7676
String envValue = System.getenv("APPENGINE_API_CALLS_IDLE_TIMEOUT_MS");
7777
if (envValue != null) {
7878
try {

runtime/runtime_impl_jetty9/src/main/java/com/google/apphosting/runtime/http/JettyHttpApiHostClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private JettyHttpApiHostClient(String url, HttpClient httpClient, Config config)
7272
static JettyHttpApiHostClient create(String url, Config config) {
7373
Preconditions.checkNotNull(url);
7474
HttpClient httpClient = new HttpClient();
75-
long idleTimeout = 25000; // 25 seconds, should be less than 30 or 60 used server-side.
75+
long idleTimeout = 58000; // 58 seconds, should be less than 60 used server-side.
7676
String envValue = System.getenv("APPENGINE_API_CALLS_IDLE_TIMEOUT_MS");
7777
if (envValue != null) {
7878
try {

0 commit comments

Comments
 (0)