1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

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

This commit is contained in:
winlin 2014-12-10 18:06:09 +08:00
parent 6bdd0af728
commit 68ade0a267
2 changed files with 7 additions and 0 deletions

4
trunk/conf/realtime.conf Normal file → Executable file
View file

@ -7,4 +7,8 @@ max_connections 1000;
vhost __defaultVhost__ {
gop_cache off;
queue_length 10;
mr {
enabled off;
}
mw_latency 100;
}

View file

@ -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