From 0edc40b09e7f90f5c1cf50039594b19a6114b3ec Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Mon, 20 Jul 2020 14:13:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AE=BE=E7=BD=AErestTemplateWithT?= =?UTF-8?q?imeout=20=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B410s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/io/metersphere/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/config/WebConfig.java b/backend/src/main/java/io/metersphere/config/WebConfig.java index 4b08e32763..4b73b1452a 100644 --- a/backend/src/main/java/io/metersphere/config/WebConfig.java +++ b/backend/src/main/java/io/metersphere/config/WebConfig.java @@ -27,7 +27,7 @@ public class WebConfig implements WebMvcConfigurer { HttpComponentsClientHttpRequestFactory httpRequestFactory = new HttpComponentsClientHttpRequestFactory(); httpRequestFactory.setConnectionRequestTimeout(4000); httpRequestFactory.setConnectTimeout(4000); - httpRequestFactory.setReadTimeout(5000); + httpRequestFactory.setReadTimeout(10 * 1000); restTemplate.setRequestFactory(httpRequestFactory); return restTemplate; }