diff options
author | Bjorn Svensson <bjorn.a.svensson@est.tech> | 2022-01-11 19:19:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 10:19:43 -0800 |
commit | ff860e55dbe49bbd3dc9a89d055047d0731ecc9f (patch) | |
tree | b957661023eee22b6f12e975bb0158a0f7303fd4 /async.c | |
parent | 24d5344934b866590646591ef0d696cb705a055a (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |