Commit 83c2773c authored by shenjunlin's avatar shenjunlin

加大超时时间

parent 96c33285
...@@ -32,7 +32,7 @@ public class HttpHelper { ...@@ -32,7 +32,7 @@ public class HttpHelper {
CloseableHttpResponse response = null; CloseableHttpResponse response = null;
CloseableHttpClient httpClient = HttpClients.createDefault(); CloseableHttpClient httpClient = HttpClients.createDefault();
RequestConfig requestConfig = RequestConfig.custom(). RequestConfig requestConfig = RequestConfig.custom().
setSocketTimeout(2000).setConnectTimeout(2000).build(); setSocketTimeout(5000).setConnectTimeout(5000).build();
httpGet.setConfig(requestConfig); httpGet.setConfig(requestConfig);
try { try {
......
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