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