提高 推流重试次数

This commit is contained in:
shikong 2024-03-14 01:21:52 +08:00
parent aa327ace86
commit d9376eebf7

View File

@ -126,7 +126,7 @@ public class DeviceProxyService {
// 重试间隔 // 重试间隔
.withWaitStrategy(WaitStrategies.fixedWait(1, TimeUnit.MILLISECONDS)) .withWaitStrategy(WaitStrategies.fixedWait(1, TimeUnit.MILLISECONDS))
// 重试次数 // 重试次数
.withStopStrategy(StopStrategies.stopAfterAttempt(10 * 1000)) .withStopStrategy(StopStrategies.stopAfterAttempt(5 * 1000))
.build(); .build();
zlmPublishHookService.getHandler(DEFAULT_ZLM_APP).put(callId,()->{ zlmPublishHookService.getHandler(DEFAULT_ZLM_APP).put(callId,()->{
scheduledExecutorService.submit(()->{ scheduledExecutorService.submit(()->{