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

OnSubscribeRange request overflow check #2771

Merged
merged 1 commit into from
Feb 24, 2015

Conversation

davidmoten
Copy link
Collaborator

One more:

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
Copy link
Member

Excellent!

akarnokd added a commit that referenced this pull request Feb 24, 2015
OnSubscribeRange request overflow check
@akarnokd akarnokd merged commit 4778d00 into ReactiveX:1.x Feb 24, 2015
@benjchristensen benjchristensen mentioned this pull request Mar 6, 2015
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