Browse Source

fixed--设备刷新超时时间设置为3s

pull/367/head
chenjialing 3 years ago
parent
commit
368c9de9c4
  1. 4
      src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java

4
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java

@ -153,8 +153,8 @@ public class DeviceQuery {
Device device = storager.queryVideoDevice(deviceId);
String key = DeferredResultHolder.CALLBACK_CMD_CATALOG + deviceId;
String uuid = UUID.randomUUID().toString();
// 默认超时时间为30分
DeferredResult<ResponseEntity<Device>> result = new DeferredResult<ResponseEntity<Device>>(30*60*1000L);
// 默认超时时间为3
DeferredResult<ResponseEntity<Device>> result = new DeferredResult<ResponseEntity<Device>>(3000L);
result.onTimeout(()->{
logger.warn("设备[{}]通道信息同步超时", deviceId);
// 释放rtpserver

Loading…
Cancel
Save