Skip to content

Commit a9b914a

Browse files
Mixficsolwuxianrong
andauthored
fix telnet core dump (#3099)
Co-authored-by: wuxianrong <[email protected]>
1 parent 0914e39 commit a9b914a

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
@@ -288,6 +288,10 @@ bool PikaClientConn::IsInterceptedByRTC(std::string& opt) {
288288
void PikaClientConn::ProcessRedisCmds(const std::vector<net::RedisCmdArgsType>& argvs, bool async,
289289
std::string* response) {
290290
time_stat_->Reset();
291+
if (argvs.empty()) {
292+
NotifyEpoll(true);
293+
return;
294+
}
291295
if (async) {
292296
auto arg = new BgTaskArg();
293297
arg->cache_miss_in_rtc_ = false;

0 commit comments

Comments
 (0)