Skip to content

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