summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorBjorn Svensson <bjorn.a.svensson@est.tech>2022-01-11 19:19:43 +0100
committerGitHub <noreply@github.com>2022-01-11 10:19:43 -0800
commitff860e55dbe49bbd3dc9a89d055047d0731ecc9f (patch)
treeb957661023eee22b6f12e975bb0158a0f7303fd4 /async.c
parent24d5344934b866590646591ef0d696cb705a055a (diff)
Correction for command timeout during pubsub (#1038)
* Add test of command timeout during pubsub A timeout of a non-subscribe command will be ignored during pubsub. It will be handled as an idle timeout and a response is awaited for. * Correction for command timeout during pubsub Disconnect when a sent non-subscribe command triggers a timeout.
Diffstat (limited to 'async.c')
-rw-r--r--async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/async.c b/async.c
index e4a2309..3b5ec27 100644
--- a/async.c
+++ b/async.c
@@ -696,7 +696,7 @@ void redisAsyncHandleTimeout(redisAsyncContext *ac) {
redisCallback cb;
if ((c->flags & REDIS_CONNECTED)) {
- if ( ac->replies.head == NULL) {
+ if (ac->replies.head == NULL && ac->sub.replies.head == NULL) {
/* Nothing to do - just an idle timeout */
return;
}