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

OperatorOnBackpressureDrop request overflow check #2770

Merged

Conversation

davidmoten
Copy link
Collaborator

Use BackpressureUtils.getAndAddRequest(requested, n) instead of requested.getAndAdd(n) so that an overflow check takes place. Includes a unit test that failed on original code (but passes with this PR).

@akarnokd akarnokd added the Bug label Feb 24, 2015
@akarnokd
Copy link
Member

Thanks!

akarnokd added a commit that referenced this pull request Feb 24, 2015
…verflow

OperatorOnBackpressureDrop request overflow check
@akarnokd akarnokd merged commit 2605ede into ReactiveX:1.x Feb 24, 2015
@benjchristensen benjchristensen mentioned this pull request Mar 6, 2015
@davidmoten davidmoten deleted the onBackpressureDrop-request-overflow branch April 10, 2015 04:39
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.

2 participants