Skip to content

Commit 0b24433

Browse files
author
wuxianrong
committed
fix telnet core dump
1 parent d0333ee commit 0b24433

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/pika_client_conn.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ bool PikaClientConn::IsInterceptedByRTC(std::string& opt) {
286286
void PikaClientConn::ProcessRedisCmds(const std::vector<net::RedisCmdArgsType>& argvs, bool async,
287287
std::string* response) {
288288
time_stat_->Reset();
289+
if (argvs.empty()) {
290+
NotifyEpoll(true);
291+
return;
292+
}
289293
if (async) {
290294
auto arg = new BgTaskArg();
291295
arg->cache_miss_in_rtc_ = false;

0 commit comments

Comments
 (0)