1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Covert server ARQ for DTLS

This commit is contained in:
winlin 2020-08-19 17:22:34 +08:00
parent f33c83a26f
commit e4b0dd56f0
3 changed files with 205 additions and 10 deletions

View file

@ -328,6 +328,8 @@ SrsDtls::SrsDtls(ISrsDtlsCallback* callback)
trd = NULL;
state_ = SrsDtlsStateInit;
arq_first = 50 * SRS_UTIME_MILLISECONDS;
arq_interval = 100 * SRS_UTIME_MILLISECONDS;
}
SrsDtls::~SrsDtls()
@ -559,7 +561,7 @@ srs_error_t SrsDtls::cycle()
srs_error_t err = srs_success;
// The first ARQ delay.
srs_usleep(50 * SRS_UTIME_MILLISECONDS);
srs_usleep(arq_first);
while (true) {
srs_info("arq cycle, state=%u", state_);
@ -595,7 +597,7 @@ srs_error_t SrsDtls::cycle()
}
// TODO: Use ARQ step timeouts.
srs_usleep(100 * SRS_UTIME_MILLISECONDS);
srs_usleep(arq_interval);
}
return err;