调大zlm超时时间 防止某些情况下误判
This commit is contained in:
parent
16be1040f8
commit
52cad8672b
@ -36,9 +36,9 @@ public class ZLMRESTfulUtils {
|
|||||||
OkHttpClient.Builder httpClientBuilder = new OkHttpClient.Builder();
|
OkHttpClient.Builder httpClientBuilder = new OkHttpClient.Builder();
|
||||||
//todo 暂时写死超时时间 均为5s
|
//todo 暂时写死超时时间 均为5s
|
||||||
// 设置连接超时时间
|
// 设置连接超时时间
|
||||||
httpClientBuilder.connectTimeout(5,TimeUnit.SECONDS);
|
httpClientBuilder.connectTimeout(120,TimeUnit.SECONDS);
|
||||||
// 设置读取超时时间
|
// 设置读取超时时间
|
||||||
httpClientBuilder.readTimeout(10,TimeUnit.SECONDS);
|
httpClientBuilder.readTimeout(120,TimeUnit.SECONDS);
|
||||||
// 设置连接池
|
// 设置连接池
|
||||||
httpClientBuilder.connectionPool(new ConnectionPool(16, 5, TimeUnit.MINUTES));
|
httpClientBuilder.connectionPool(new ConnectionPool(16, 5, TimeUnit.MINUTES));
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user