mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
完善http断开时日志
This commit is contained in:
parent
ec9b8c6471
commit
8fd9853bc9
@ -101,8 +101,8 @@ void HttpSession::onRecv(const Buffer::Ptr &pBuf) {
|
||||
|
||||
void HttpSession::onError(const SockException& err) {
|
||||
if (_is_live_stream) {
|
||||
uint64_t duration = _ticker.createdTime()/1000;
|
||||
//flv/ts播放器
|
||||
uint64_t duration = _ticker.createdTime() / 1000;
|
||||
WarnP(this) << "FLV/TS/FMP4播放器("
|
||||
<< _mediaInfo._vhost << "/"
|
||||
<< _mediaInfo._app << "/"
|
||||
@ -112,17 +112,14 @@ void HttpSession::onError(const SockException& err) {
|
||||
|
||||
GET_CONFIG(uint32_t, iFlowThreshold, General::kFlowThreshold);
|
||||
if (_total_bytes_usage >= iFlowThreshold * 1024) {
|
||||
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _mediaInfo, _total_bytes_usage, duration , true, static_cast<SockInfo &>(*this));
|
||||
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _mediaInfo, _total_bytes_usage,
|
||||
duration, true, static_cast<SockInfo &>(*this));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
//http客户端
|
||||
if (!_is_live_stream) {
|
||||
TraceP(this) << err.what();
|
||||
} else {
|
||||
WarnP(this) << err.what();
|
||||
}
|
||||
}
|
||||
|
||||
void HttpSession::onManager() {
|
||||
|
Loading…
Reference in New Issue
Block a user