提高 推流重试次数

This commit is contained in:
zxb 2024-03-14 01:16:18 +08:00
parent 19524e9289
commit 1e833d087d

View File

@ -216,7 +216,7 @@ public class AckRequestProcessor extends SIPRequestProcessorParent implements In
// 重试间隔 // 重试间隔
.withWaitStrategy(WaitStrategies.fixedWait(1, TimeUnit.MILLISECONDS)) .withWaitStrategy(WaitStrategies.fixedWait(1, TimeUnit.MILLISECONDS))
// 重试次数 // 重试次数
.withStopStrategy(StopStrategies.stopAfterAttempt(3000)) .withStopStrategy(StopStrategies.stopAfterAttempt(10 * 1000))
.build(); .build();
try { try {
startSendRtpStreamResult = retryer.call(() -> zlmServerFactory.startSendRtpStream(mediaInfo, param)); startSendRtpStreamResult = retryer.call(() -> zlmServerFactory.startSendRtpStream(mediaInfo, param));