Skip to content

Commit dd7d47c

Browse files
Mixficsolwuxianrong
andauthored
fix: After connecting to Pika via telnet and pressing Enter, it causes Pika core dump (OpenAtomFoundation#3138)
* fix telnet core dump --------- Co-authored-by: wuxianrong <[email protected]>
1 parent 152d7ce commit dd7d47c

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)