mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
refactor: add WARNING regarding max_client_iobuf_len flag usage (#5029)
This commit is contained in:
parent
ad946d8e06
commit
d623304c39
1 changed files with 6 additions and 1 deletions
|
@ -1445,7 +1445,12 @@ auto Connection::IoLoop() -> variant<error_code, ParserStatus> {
|
|||
});
|
||||
}
|
||||
|
||||
DCHECK_GT(io_buf_.AppendLen(), 0U);
|
||||
if (io_buf_.AppendLen() == 0U) {
|
||||
// it can happen with memcached but not for RedisParser, because RedisParser fully
|
||||
// consumes the passed buffer
|
||||
LOG_EVERY_T(WARNING, 10)
|
||||
<< "Maximum io_buf length reached, consider to increase max_client_iobuf_len flag";
|
||||
}
|
||||
}
|
||||
} else if (parse_status != OK) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue