From f7fdbe68488dcb659900918bd8b31ae58e67ce7e Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 1 Aug 2014 22:52:40 +0800 Subject: [PATCH] update get connections thread to sleep 10ms per 1000 connectios. 0.9.181 --- trunk/src/app/srs_app_utility.cpp | 4 ++-- trunk/src/core/srs_core.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/src/app/srs_app_utility.cpp b/trunk/src/app/srs_app_utility.cpp index 3e1e5a673..826adc20c 100644 --- a/trunk/src/app/srs_app_utility.cpp +++ b/trunk/src/app/srs_app_utility.cpp @@ -840,9 +840,9 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps) // there are maybe many many connections, // for example, when srs used for monitor other process, // like nginx, there are maybe many TIME_WAIT conections. - // we sleep 1ms when read 1000 records, so 100ms for 10w connections. + // we sleep 10ms when read 1000 records, so 1000ms for 10w connections. if ((i % 1000) == 0) { - st_usleep(1000); + st_usleep(10 * 1000); } if (ret == 1) { diff --git a/trunk/src/core/srs_core.hpp b/trunk/src/core/srs_core.hpp index 7a638b27b..635a950d5 100644 --- a/trunk/src/core/srs_core.hpp +++ b/trunk/src/core/srs_core.hpp @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // current release version #define VERSION_MAJOR "0" #define VERSION_MINOR "9" -#define VERSION_REVISION "180" +#define VERSION_REVISION "181" #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION // server info. #define RTMP_SIG_SRS_KEY "SRS"