|
@@ -29,7 +29,6 @@ import org.apache.http.message.BasicNameValuePair;
|
|
|
import org.apache.http.protocol.HTTP;
|
|
import org.apache.http.protocol.HTTP;
|
|
|
import org.apache.http.ssl.SSLContexts;
|
|
import org.apache.http.ssl.SSLContexts;
|
|
|
import org.apache.http.util.EntityUtils;
|
|
import org.apache.http.util.EntityUtils;
|
|
|
-import org.apache.poi.util.StringUtil;
|
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
@@ -49,9 +48,12 @@ public class HttpClientHelper {
|
|
|
private static PoolingHttpClientConnectionManager poolConnManager = null;
|
|
private static PoolingHttpClientConnectionManager poolConnManager = null;
|
|
|
private int maxTotalPool = 200;
|
|
private int maxTotalPool = 200;
|
|
|
private int maxConPerRoute = 20;
|
|
private int maxConPerRoute = 20;
|
|
|
- private int socketTimeout = 100000;
|
|
|
|
|
- private int connectionRequestTimeout = 90000;
|
|
|
|
|
- private int connectTimeout = 90000;
|
|
|
|
|
|
|
+// private int socketTimeout = 100000;
|
|
|
|
|
+ private int socketTimeout = 30000;
|
|
|
|
|
+// private int connectionRequestTimeout = 90000;
|
|
|
|
|
+ private int connectionRequestTimeout = 15000;
|
|
|
|
|
+// private int connectTimeout = 90000;
|
|
|
|
|
+ private int connectTimeout = 15000;
|
|
|
|
|
|
|
|
// 代理信息
|
|
// 代理信息
|
|
|
public static String proxy_ip;
|
|
public static String proxy_ip;
|