mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add statistic for stream
This commit is contained in:
parent
8d534d3470
commit
a4a93613d0
8 changed files with 188 additions and 48 deletions
|
@ -51,6 +51,7 @@ using namespace std;
|
|||
#include <srs_app_recv_thread.hpp>
|
||||
#include <srs_core_performance.hpp>
|
||||
#include <srs_kernel_utility.hpp>
|
||||
#include <srs_app_statistic.hpp>
|
||||
|
||||
// when stream is busy, for example, streaming is already
|
||||
// publishing, when a new client to request to publish,
|
||||
|
@ -382,6 +383,8 @@ int SrsRtmpConn::stream_service_cycle()
|
|||
}
|
||||
srs_assert(source != NULL);
|
||||
|
||||
SrsStatistic::instance()->add_request_info(source, req);
|
||||
|
||||
// check ASAP, to fail it faster if invalid.
|
||||
if (type != SrsRtmpConnPlay && !vhost_is_edge) {
|
||||
// check publish available
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue