From 4895770214e9b9e4c6385b6af853eedd1bf799ce Mon Sep 17 00:00:00 2001 From: "jinxue.cgh" Date: Sun, 17 May 2020 20:20:37 +0800 Subject: [PATCH] tenfold: modify nack options --- trunk/conf/rtc.conf | 4 ++-- trunk/src/app/srs_app_rtc_queue.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/trunk/conf/rtc.conf b/trunk/conf/rtc.conf index 608ba3798..5e25933a1 100644 --- a/trunk/conf/rtc.conf +++ b/trunk/conf/rtc.conf @@ -1,6 +1,6 @@ listen 1935; -max_connections 1000; +max_connections 10; srs_log_tank console; srs_log_file ./objs/srs.log; daemon off; @@ -27,7 +27,7 @@ rtc_server { # # The * means retrieving server IP automatically, from all network interfaces, # @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124 - candidate $CANDIDATE; + candidate *; } vhost __defaultVhost__ { diff --git a/trunk/src/app/srs_app_rtc_queue.cpp b/trunk/src/app/srs_app_rtc_queue.cpp index d38cbb117..c963ddce6 100644 --- a/trunk/src/app/srs_app_rtc_queue.cpp +++ b/trunk/src/app/srs_app_rtc_queue.cpp @@ -158,10 +158,10 @@ void SrsRtpRingBuffer::notify_drop_seq(uint16_t seq) SrsNackOption::SrsNackOption() { - max_count = 10; - max_alive_time = 2 * SRS_UTIME_SECONDS; + max_count = 15; + max_alive_time = 1 * SRS_UTIME_SECONDS; first_nack_interval = 10 * SRS_UTIME_MILLISECONDS; - nack_interval = 400 * SRS_UTIME_MILLISECONDS; + nack_interval = 50 * SRS_UTIME_MILLISECONDS; //TODO: FIXME: audio and video using diff nack strategy // janus nack option: // video: