调大zlm超时时间 防止某些情况下误判

This commit is contained in:
zxb 2023-09-27 09:46:12 +08:00
parent 1b3ba023ae
commit 1f423acd56

View File

@ -43,9 +43,9 @@ public class ZLMRESTfulUtils {
OkHttpClient.Builder httpClientBuilder = new OkHttpClient.Builder();
//todo 暂时写死超时时间 均为5s
// 设置连接超时时间
httpClientBuilder.connectTimeout(8,TimeUnit.SECONDS);
httpClientBuilder.connectTimeout(120,TimeUnit.SECONDS);
// 设置读取超时时间
httpClientBuilder.readTimeout(readTimeOut,TimeUnit.SECONDS);
httpClientBuilder.readTimeout(120,TimeUnit.SECONDS);
// 设置连接池
httpClientBuilder.connectionPool(new ConnectionPool(16, 5, TimeUnit.MINUTES));
if (logger.isDebugEnabled()) {