Merge pull request #908 from cnless/wvp-28181-2.0

fix:修复ResponseBody未关闭以及点播超时报错AsyncRequestTimeoutException
This commit is contained in:
648540858 2023-07-01 23:04:39 +08:00 committed by GitHub
commit bb87550cdc
3 changed files with 9 additions and 1 deletions

View File

@ -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已启动...");

View File

@ -5,6 +5,10 @@
spring: spring:
# 设置接口超时时间
mvc:
async:
request-timeout: 20000
# [可选]上传文件大小限制 # [可选]上传文件大小限制
servlet: servlet:
multipart: multipart:

View File

@ -1,4 +1,8 @@
spring: spring:
# 设置接口超时时间
mvc:
async:
request-timeout: 20000
thymeleaf: thymeleaf:
cache: false cache: false
# [可选]上传文件大小限制 # [可选]上传文件大小限制