添加打印log
This commit is contained in:
parent
84da660754
commit
52e25fc08c
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue