diff options
author | Bjorn Svensson <bjorn.a.svensson@est.tech> | 2022-01-18 19:09:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 10:09:38 -0800 |
commit | f2ce5980e6bc9739b85a5ac882980956c80907ba (patch) | |
tree | 588820b9a0c288d9021358f0938c11668e0453fa /read.c | |
parent | ff860e55dbe49bbd3dc9a89d055047d0731ecc9f (diff) |
Allow sending commands after sending an unsubscribe (#1036)
* Add test of async commands after unsubscribe
Verify that commands are handled after unsubscribing from a channel.
A command is sent before the `unsubscribe` response is received,
which currently triggers an assert in async.c:567:
`redisProcessCallbacks: Assertion `(c->flags & REDIS_SUBSCRIBED || c->flags & REDIS_MONITORING)' failed.`
* Handle async commands after an unsubscribe
When unsubscribing from the last channel we move from the `subscribe`
state to a normal state. These states uses different holders for the
command callback information.
By moving the callback info during the state change the callback order
can be maintained.
Diffstat (limited to 'read.c')
0 files changed, 0 insertions, 0 deletions