Repository navigation
v12.6.0
Bug Fix
-
Fixed Pub/Sub UnsubscribeAsync and UnsubscribeAllAsync not working with connection pooling (#657)
When using connection pooling (default pool size: 5),
UnsubscribeAsyncandUnsubscribeAllAsyncwere each callingGetConnection()independently, potentially obtaining a differentIConnectionMultiplexerthan the one used duringSubscribeAsync. Since StackExchange.Redis subscriptions are scoped to a specific multiplexer, calling unsubscribe on a different one was silently doing nothing.The fix iterates all pool connections and uses
ISubscriber.SubscribedEndpoint()to locate the multiplexer holding the active subscription.
Install
dotnet add package StackExchange.Redis.Extensions.Core --version 12.6.0Full Changelog: v12.5.0...v12.6.0