mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
DTLS: Change max loop to larger
This commit is contained in:
parent
62987aa01f
commit
d4d11c2c18
1 changed files with 2 additions and 1 deletions
|
@ -826,7 +826,8 @@ srs_error_t SrsDtlsClientImpl::cycle()
|
|||
// 50ms, 100ms, 200ms, 400ms, 800ms, (1000ms,600ms), (200ms,1000ms,1000ms,1000ms),
|
||||
// (400ms,1000ms,1000ms,1000ms,1000ms,1000ms,1000ms), ...
|
||||
// So when the max ARQ limit to 12 times, the max loop is about 103.
|
||||
const int max_loop = 103;
|
||||
// @remark We change the max sleep to 100ms, so we limit about (103*10)/2=500.
|
||||
const int max_loop = 512;
|
||||
|
||||
int arq_count = 0;
|
||||
for (int i = 0; arq_count < arq_max_retry && i < max_loop; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue