diff --git a/src/worker.cc b/src/worker.cc index 2ce4dc41f0c..e1813f83d79 100644 --- a/src/worker.cc +++ b/src/worker.cc @@ -234,6 +234,7 @@ Status Worker::Reply(int fd, const std::string &reply) { std::unique_lock lock(conns_mu_); auto iter = conns_.find(fd); if (iter != conns_.end()) { + iter->second->SetLastInteraction(); Redis::Reply(iter->second->Output(), reply); return Status::OK(); }