发票下载增加超时时间
This commit is contained in:
		
							parent
							
								
									48843ec04b
								
							
						
					
					
						commit
						c2530ed6ea
					
				|  | @ -230,12 +230,12 @@ public class InvoiceDownloadAction implements ICommonAction { | |||
| 
 | ||||
|     private String doGet(String requestUrl, Map<String, String> paramMap) throws IOException { | ||||
|         PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager(); | ||||
|         cm.setMaxTotal(500); | ||||
|         cm.setDefaultMaxPerRoute(50); | ||||
|         cm.setMaxTotal(5000); | ||||
|         cm.setDefaultMaxPerRoute(500); | ||||
| 
 | ||||
|         RequestConfig globalConfig = RequestConfig.custom().setConnectionRequestTimeout(5000) // 连接池获取连接超时 | ||||
|                 .setConnectTimeout(5000) // 连接建立超时 | ||||
|                 .setSocketTimeout(20000) // 等待响应超时 | ||||
|         RequestConfig globalConfig = RequestConfig.custom().setConnectionRequestTimeout(50000) // 连接池获取连接超时 | ||||
|                 .setConnectTimeout(50000) // 连接建立超时 | ||||
|                 .setSocketTimeout(200000) // 等待响应超时 | ||||
|                 .setCookieSpec(CookieSpecs.IGNORE_COOKIES).build(); | ||||
| 
 | ||||
|         CloseableHttpClient httpClient = HttpClients.custom().setConnectionManager(cm) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue