bug fixed

This commit is contained in:
xiongziliang 2018-01-31 09:55:55 +08:00
parent aa0ae0c865
commit 8ef84473fc

View File

@ -343,7 +343,7 @@ inline HttpSession::HttpCode HttpSession::Handle_Req_GET() {
fclose(pFp);
});
static uint32_t sendBufSize = mINI::Instance()[Config::Http::kSendBufSize].as<uint32_t>();
sock->setShouldDropPacket(false);
weak_ptr<HttpSession> weakSelf = dynamic_pointer_cast<HttpSession>(shared_from_this());
auto onFlush = [pFilePtr,bClose,weakSelf,piLeft]() {
TimeTicker();