|
@@ -212,7 +212,8 @@ public class HttpUtils {
|
|
|
if (param != null && param.size() > 0) {
|
|
|
httppost.setEntity(new StringEntity(new Gson().toJson(param), Charset.forName("UTF-8")));
|
|
|
}
|
|
|
-
|
|
|
+ RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(120 * 1000).setConnectTimeout(120 * 1000).build();
|
|
|
+ httppost.setConfig(requestConfig);
|
|
|
HttpEntity respentity;
|
|
|
|
|
|
HttpResponse response = httpClient.execute(httppost);
|