Commit a9048b4a by xiongziliang

修复http-flv直播超时bug

parent 17423828
...@@ -635,6 +635,7 @@ void HttpSession::onWrite(const Buffer::Ptr &buffer) { ...@@ -635,6 +635,7 @@ void HttpSession::onWrite(const Buffer::Ptr &buffer) {
if(!strongSelf) { if(!strongSelf) {
return; return;
} }
strongSelf->m_ticker.resetTime();
strongSelf->m_ui64TotalBytes += buffer->size(); strongSelf->m_ui64TotalBytes += buffer->size();
strongSelf->send(buffer); strongSelf->send(buffer);
}); });
...@@ -650,6 +651,7 @@ void HttpSession::onWrite(const char *data, int len) { ...@@ -650,6 +651,7 @@ void HttpSession::onWrite(const char *data, int len) {
if(!strongSelf) { if(!strongSelf) {
return; return;
} }
strongSelf->m_ticker.resetTime();
strongSelf->m_ui64TotalBytes += buffer->size(); strongSelf->m_ui64TotalBytes += buffer->size();
strongSelf->send(buffer); strongSelf->send(buffer);
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论