mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Limit the ARQ for DTLS
This commit is contained in:
parent
1ffea2bcc5
commit
036cc2a7a2
2 changed files with 135 additions and 2 deletions
|
@ -677,8 +677,9 @@ srs_error_t SrsDtlsClientImpl::cycle()
|
|||
// The first ARQ delay.
|
||||
srs_usleep(arq_first);
|
||||
|
||||
while (true) {
|
||||
srs_info("arq cycle, state=%u", state_);
|
||||
// Limit the max retry for ARQ.
|
||||
for (int arq_retry_left = 7; arq_retry_left > 0; arq_retry_left--) {
|
||||
srs_info("arq cycle, state=%u, retry=%d", state_, arq_retry_left);
|
||||
|
||||
// We ignore any error for ARQ thread.
|
||||
if ((err = trd->pull()) != srs_success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue