增加同步通道超时时间,修复hookIP空字符串时的hookIP的默认值赋值

This commit is contained in:
64850858
2021-06-09 09:28:29 +08:00
parent 377f0f2c82
commit ecb5b69101
2 changed files with 20 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ public class DeviceQuery {
msg.setData(String.format("同步通道失败,错误码: %s, %s", response.getStatusCode(), response.getReasonPhrase()));
resultHolder.invokeResult(msg);
});
DeferredResult<ResponseEntity<Device>> result = new DeferredResult<ResponseEntity<Device>>(2*1000L);
DeferredResult<ResponseEntity<Device>> result = new DeferredResult<ResponseEntity<Device>>(15*1000L);
result.onTimeout(()->{
logger.warn(String.format("设备通道信息同步超时"));
// 释放rtpserver