Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publisher.multicast lack of demand on cancel #2109

Merged
merged 1 commit into from
Feb 26, 2022

Conversation

Scottmitch
Copy link
Member

Motivation:
Publisher.multicast fails to request more from upstream
if the Subscription with the minimum demand cancels.
This may result in a live lock because the remaining
Subscribers have requested data but that request hasn't
been communicated upstream.

Modifications:

  • Publisher.multicast checks when a Subscription is
    cancelled if it is has the minimum demand more
    must be requested from upstream.

Result:
No more live lock if the minimum demand Subscription cancels.

Motivation:
Publisher.multicast fails to request more from upstream
if the Subscription with the minimum demand cancels.
This may result in a live lock because the remaining
Subscribers have requested data but that request hasn't
been communicated upstream.

Modifications:
- Publisher.multicast checks when a Subscription is
  cancelled if it is has the minimum demand more
  must be requested from upstream.

Result:
No more live lock if the minimum demand Subscription cancels.
@Scottmitch Scottmitch merged commit 69c0f54 into apple:main Feb 26, 2022
@Scottmitch Scottmitch deleted the multicast branch February 26, 2022 04:12
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants