Merge pull request #908 from cnless/wvp-28181-2.0
fix:修复ResponseBody未关闭以及点播超时报错AsyncRequestTimeoutException
This commit is contained in:
commit
bb87550cdc
@ -192,10 +192,10 @@ public class ZLMRESTfulUtils {
|
|||||||
} else {
|
} else {
|
||||||
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
|
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
|
||||||
}
|
}
|
||||||
Objects.requireNonNull(response.body()).close();
|
|
||||||
} else {
|
} else {
|
||||||
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
|
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
|
||||||
}
|
}
|
||||||
|
Objects.requireNonNull(response.body()).close();
|
||||||
} catch (ConnectException e) {
|
} catch (ConnectException e) {
|
||||||
logger.error(String.format("连接ZLM失败: %s, %s", e.getCause().getMessage(), e.getMessage()));
|
logger.error(String.format("连接ZLM失败: %s, %s", e.getCause().getMessage(), e.getMessage()));
|
||||||
logger.info("请检查media配置并确认ZLM已启动...");
|
logger.info("请检查media配置并确认ZLM已启动...");
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
|
# 设置接口超时时间
|
||||||
|
mvc:
|
||||||
|
async:
|
||||||
|
request-timeout: 20000
|
||||||
# [可选]上传文件大小限制
|
# [可选]上传文件大小限制
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
spring:
|
spring:
|
||||||
|
# 设置接口超时时间
|
||||||
|
mvc:
|
||||||
|
async:
|
||||||
|
request-timeout: 20000
|
||||||
thymeleaf:
|
thymeleaf:
|
||||||
cache: false
|
cache: false
|
||||||
# [可选]上传文件大小限制
|
# [可选]上传文件大小限制
|
||||||
|
Loading…
Reference in New Issue
Block a user