From 68ade0a267307e9899ee5796ef680da89267beb4 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 10 Dec 2014 18:06:09 +0800 Subject: [PATCH] add log info for rtmp conn. change the mw_latency to 100 for realtime. --- trunk/conf/realtime.conf | 4 ++++ trunk/src/app/srs_app_rtmp_conn.cpp | 3 +++ 2 files changed, 7 insertions(+) mode change 100644 => 100755 trunk/conf/realtime.conf diff --git a/trunk/conf/realtime.conf b/trunk/conf/realtime.conf old mode 100644 new mode 100755 index 6fd74b60e4..00ccd03c54 --- a/trunk/conf/realtime.conf +++ b/trunk/conf/realtime.conf @@ -7,4 +7,8 @@ max_connections 1000; vhost __defaultVhost__ { gop_cache off; queue_length 10; + mr { + enabled off; + } + mw_latency 100; } diff --git a/trunk/src/app/srs_app_rtmp_conn.cpp b/trunk/src/app/srs_app_rtmp_conn.cpp index de25901a93..e866f55e1b 100644 --- a/trunk/src/app/srs_app_rtmp_conn.cpp +++ b/trunk/src/app/srs_app_rtmp_conn.cpp @@ -615,8 +615,11 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd) #ifdef SRS_PERF_QUEUE_COND_WAIT // we use wait to get messages, so the count must be positive. srs_assert(count > 0); + srs_info("mw wait %dms and got %d msgs %"PRId64"-%"PRId64"ms", + mw_sleep, count, msgs.msgs[0]->timestamp, msgs.msgs[count - 1]->timestamp); #else if (count <= 0) { + srs_info("mw sleep %dms for no msg", mw_sleep); st_usleep(mw_sleep * 1000); } #endif