mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for bug #194, add the send macro to performance.
This commit is contained in:
parent
60bc9c2aa0
commit
90992b31a3
2 changed files with 15 additions and 2 deletions
|
@ -49,6 +49,7 @@ using namespace std;
|
|||
#include <srs_protocol_msg_array.hpp>
|
||||
#include <srs_protocol_amf0.hpp>
|
||||
#include <srs_app_recv_thread.hpp>
|
||||
#include <srs_core_performance.hpp>
|
||||
|
||||
// when stream is busy, for example, streaming is already
|
||||
// publishing, when a new client to request to publish,
|
||||
|
@ -591,7 +592,7 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd)
|
|||
// no message to send, sleep a while.
|
||||
if (count <= 0) {
|
||||
srs_verbose("sleep for no messages to send");
|
||||
st_usleep(SRS_CONSTS_RTMP_PULSE_TIMEOUT_US);
|
||||
st_usleep(SRS_PERF_SEND_MSGS_CACHE * 1000);
|
||||
}
|
||||
|
||||
// reportable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue