Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
8fd9853b
Commit
8fd9853b
authored
Aug 13, 2021
by
ziyue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善http断开时日志
parent
ec9b8c64
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
9 行删除
+6
-9
src/Http/HttpSession.cpp
+6
-9
没有找到文件。
src/Http/HttpSession.cpp
查看文件 @
8fd9853b
...
@@ -100,9 +100,9 @@ void HttpSession::onRecv(const Buffer::Ptr &pBuf) {
...
@@ -100,9 +100,9 @@ void HttpSession::onRecv(const Buffer::Ptr &pBuf) {
}
}
void
HttpSession
::
onError
(
const
SockException
&
err
)
{
void
HttpSession
::
onError
(
const
SockException
&
err
)
{
if
(
_is_live_stream
){
if
(
_is_live_stream
)
{
uint64_t
duration
=
_ticker
.
createdTime
()
/
1000
;
//flv/ts播放器
//flv/ts播放器
uint64_t
duration
=
_ticker
.
createdTime
()
/
1000
;
WarnP
(
this
)
<<
"FLV/TS/FMP4播放器("
WarnP
(
this
)
<<
"FLV/TS/FMP4播放器("
<<
_mediaInfo
.
_vhost
<<
"/"
<<
_mediaInfo
.
_vhost
<<
"/"
<<
_mediaInfo
.
_app
<<
"/"
<<
_mediaInfo
.
_app
<<
"/"
...
@@ -110,19 +110,16 @@ void HttpSession::onError(const SockException& err) {
...
@@ -110,19 +110,16 @@ void HttpSession::onError(const SockException& err) {
<<
")断开:"
<<
err
.
what
()
<<
")断开:"
<<
err
.
what
()
<<
",耗时(s):"
<<
duration
;
<<
",耗时(s):"
<<
duration
;
GET_CONFIG
(
uint32_t
,
iFlowThreshold
,
General
::
kFlowThreshold
);
GET_CONFIG
(
uint32_t
,
iFlowThreshold
,
General
::
kFlowThreshold
);
if
(
_total_bytes_usage
>=
iFlowThreshold
*
1024
){
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
;
return
;
}
}
//http客户端
//http客户端
if
(
!
_is_live_stream
)
{
TraceP
(
this
)
<<
err
.
what
();
TraceP
(
this
)
<<
err
.
what
();
}
else
{
WarnP
(
this
)
<<
err
.
what
();
}
}
}
void
HttpSession
::
onManager
()
{
void
HttpSession
::
onManager
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论