添加打印log

This commit is contained in:
xzl 2017-04-18 14:43:04 +08:00
parent 84da660754
commit 52e25fc08c

View File

@ -95,7 +95,7 @@ void HttpSession::onRecv(const Socket::Buffer::Ptr&pBuf) {
static uint32_t reqSize = mINI::Instance()[Config::Http::kMaxReqSize].as<uint32_t>(); static uint32_t reqSize = mINI::Instance()[Config::Http::kMaxReqSize].as<uint32_t>();
m_ticker.resetTime(); m_ticker.resetTime();
if (m_strRcvBuf.size() + pBuf->size() >= reqSize) { if (m_strRcvBuf.size() + pBuf->size() >= reqSize) {
WarnL << "接收缓冲区溢出!"; WarnL << "接收缓冲区溢出:" << m_strRcvBuf.size() + pBuf->size() << "," << reqSize;
shutdown(); shutdown();
return; return;
} }