From 75f972e0261a6f7561ab515337ab90aa3a8c3f35 Mon Sep 17 00:00:00 2001 From: Christian Maan Date: Fri, 22 Jan 2021 16:39:11 +0100 Subject: [PATCH] increase read timeout for larger discovery docs --- .../google/api/server/spi/tools/CloudClientLibGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints-framework-tools/src/main/java/com/google/api/server/spi/tools/CloudClientLibGenerator.java b/endpoints-framework-tools/src/main/java/com/google/api/server/spi/tools/CloudClientLibGenerator.java index 4232aa3a..e6e21af1 100644 --- a/endpoints-framework-tools/src/main/java/com/google/api/server/spi/tools/CloudClientLibGenerator.java +++ b/endpoints-framework-tools/src/main/java/com/google/api/server/spi/tools/CloudClientLibGenerator.java @@ -61,7 +61,7 @@ InputStream postRequest(String url, String boundary, String content) throws IOEx HttpRequestFactory requestFactory = new NetHttpTransport().createRequestFactory(); HttpRequest request = requestFactory.buildPostRequest(new GenericUrl(url), ByteArrayContent.fromString("multipart/form-data; boundary=" + boundary, content)); - request.setReadTimeout(60000); // 60 seconds is the max App Engine request time + request.setReadTimeout(600000); // Larger discovery documents require more than 20 sec to process HttpResponse response = request.execute(); if (response.getStatusCode() >= 300) { throw new IOException("Client Generation failed at server side: " + response.getContent());