perf(ZLMRESTfulUtils): 修改OkHttpClient 读取超时时间,解决点播时截图快照获取超时的问题
This commit is contained in:
parent
9586f58a30
commit
d50dd3fe84
@ -36,7 +36,7 @@ public class ZLMRESTfulUtils {
|
|||||||
// 设置连接超时时间
|
// 设置连接超时时间
|
||||||
httpClientBuilder.connectTimeout(5,TimeUnit.SECONDS);
|
httpClientBuilder.connectTimeout(5,TimeUnit.SECONDS);
|
||||||
// 设置读取超时时间
|
// 设置读取超时时间
|
||||||
httpClientBuilder.readTimeout(5,TimeUnit.SECONDS);
|
httpClientBuilder.readTimeout(10,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