Skip to content

Commit b4a31a5

Browse files
OlegDokukaOleh DokukachemicL
authored
Fix FluxReplay cancel and subscribe race between two Subscribers (#3707)
In FluxReplay combined with refCount(), when one Subscriber leaves, while concurrently another one subscribes, there can be a chance that the new one creates a new upstream connection (Subscription to the source which is shared between Subscribers). At the same time the connection which is being closed can replay stale values onto the new Subscriber. This commit ensures that the ordering is correct and the correct connection is used in such a racy case. --------- Signed-off-by: Oleh Dokuka <[email protected]> Co-authored-by: Oleh Dokuka <[email protected]> Co-authored-by: Dariusz Jędrzejczyk <[email protected]>
1 parent 18a2b15 commit b4a31a5

File tree

2 files changed

+821
-3
lines changed

2 files changed

+821
-3
lines changed

0 commit comments

Comments
 (0)