winlin

add log info for rtmp conn. change the mw_latency to 100 for realtime.

@@ -7,4 +7,8 @@ max_connections 1000; @@ -7,4 +7,8 @@ max_connections 1000;
7 vhost __defaultVhost__ { 7 vhost __defaultVhost__ {
8 gop_cache off; 8 gop_cache off;
9 queue_length 10; 9 queue_length 10;
  10 + mr {
  11 + enabled off;
  12 + }
  13 + mw_latency 100;
10 } 14 }
@@ -615,8 +615,11 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd) @@ -615,8 +615,11 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd)
615 #ifdef SRS_PERF_QUEUE_COND_WAIT 615 #ifdef SRS_PERF_QUEUE_COND_WAIT
616 // we use wait to get messages, so the count must be positive. 616 // we use wait to get messages, so the count must be positive.
617 srs_assert(count > 0); 617 srs_assert(count > 0);
  618 + srs_info("mw wait %dms and got %d msgs %"PRId64"-%"PRId64"ms",
  619 + mw_sleep, count, msgs.msgs[0]->timestamp, msgs.msgs[count - 1]->timestamp);
618 #else 620 #else
619 if (count <= 0) { 621 if (count <= 0) {
  622 + srs_info("mw sleep %dms for no msg", mw_sleep);
620 st_usleep(mw_sleep * 1000); 623 st_usleep(mw_sleep * 1000);
621 } 624 }
622 #endif 625 #endif