From a9048b4a4da17f964826c920fdedad19a3a13771 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 31 Aug 2018 15:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhttp-flv=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E8=B6=85=E6=97=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 61e8e9a0..468b4181 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -635,6 +635,7 @@ void HttpSession::onWrite(const Buffer::Ptr &buffer) { if(!strongSelf) { return; } + strongSelf->m_ticker.resetTime(); strongSelf->m_ui64TotalBytes += buffer->size(); strongSelf->send(buffer); }); @@ -650,6 +651,7 @@ void HttpSession::onWrite(const char *data, int len) { if(!strongSelf) { return; } + strongSelf->m_ticker.resetTime(); strongSelf->m_ui64TotalBytes += buffer->size(); strongSelf->send(buffer); });