diff options
author | Bjorn Svensson <bjorn.a.svensson@est.tech> | 2022-01-28 03:30:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 18:30:58 -0800 |
commit | be41ed60d762937a8ab1e1a8c7d9daddf35217c8 (patch) | |
tree | dcb6db99adcb6b9484eb379f955a10008ca2d365 /hiredis-config.cmake.in | |
parent | f2e8010d95cbc220f8a05c597f5a81ed2339f71c (diff) |
Avoid incorrect call to the previous reply's callback (#1040)
* No reuse of the previous reply callback
When multiple replies are parsed from a socket in one read
a previously found callback might get reused when the current
reply has no known callback.
This can be triggered by the added testcase which unsubscribe to
subscribed (A,B) and a non-subscribed channel (X).
Without this correction a callback for wrong channel is called.
- In 'unsubscribe B X A', B's callback is called when handling X.
- Now this is not done, i.e. there is no callback called for X.
* Re-push monitor callback for each reply
MONITORING used the same callback for all replies while parsing
multiple responses. This handling was changed to avoid calling
the wrong callback in some scenarios.
Now also change monitorings repush to work with this change.
Includes an added async monitoring testcase.
Diffstat (limited to 'hiredis-config.cmake.in')
0 files changed, 0 insertions, 0 deletions