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

Safer iteration when cancelling subscriptions #941

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

rstoyanchev
Copy link
Contributor

Indeed as suggested in #914 (comment), since the removal of an individual sending subscription is not synchronized, when iterating over all subscription we can run into null values. This change iterates explicitly and continues despite errors on a best case effort.

@rstoyanchev rstoyanchev added the bug label Oct 6, 2020
@rstoyanchev rstoyanchev added this to the 1.0.3 milestone Oct 6, 2020
@rstoyanchev rstoyanchev self-assigned this Oct 6, 2020
@rstoyanchev rstoyanchev changed the base branch from master to 1.0.x October 6, 2020 11:48
@rstoyanchev rstoyanchev linked an issue Oct 6, 2020 that may be closed by this pull request
Copy link
Member

@OlegDokuka OlegDokuka left a comment

Choose a reason for hiding this comment

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

LGTM. Need to be ported to the master branch as well

@rstoyanchev rstoyanchev changed the title Save iteration when cancelling subscriptions Safer iteration when cancelling subscriptions Oct 6, 2020
Closes rsocketgh-914

Signed-off-by: Rossen Stoyanchev <rstoyanchev@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullPointerException on connection disposal
2 participants