You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I SUBSCRIBE to a channel with a callback, hiredis calls it with subscribe and message push messages, but not with unsubscribe. Instead, hiredis would send the reply to a push handler. This makes it harder for me to track callback lifetimes in C++, since I no longer have access to void *privdata that I have attached to my subscription.
When running the following modified example-libuv (and manually publishing a message after subscribing), I was expecting the following output:
When I
SUBSCRIBE
to a channel with a callback,hiredis
calls it withsubscribe
andmessage
push messages, but not withunsubscribe
. Instead,hiredis
would send the reply to a push handler. This makes it harder for me to track callback lifetimes in C++, since I no longer have access tovoid *privdata
that I have attached to my subscription.When running the following modified
example-libuv
(and manually publishing a message after subscribing), I was expecting the following output:Instead, I get:
It appears that this can be fixed with a one line patch:
Modified
hiredis
passes all unit tests and produces the output I expected.The text was updated successfully, but these errors were encountered: