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

scan should pass upstream a request of Long.MAX_VALUE #3727

Merged
merged 1 commit into from
Feb 24, 2016

Conversation

davidmoten
Copy link
Collaborator

Changes in 1.1.1. for the scan operator introduced a bug in requesting where when the initial request was for max value the scan operator requested one less than that value of upstream (which affects fast-path producers).

I believe this bug only affects 1.1.1 (haven't looked at 2.x).

This PR includes a test that failed on the original code.

@akarnokd
Copy link
Member

2.x is not affected because it does a full queue-drain where the initial value is in the queue already and requests are forwarded to the upstream as they are.

👍

@davidmoten
Copy link
Collaborator Author

2.x is not affected

Thanks @akarnokd

@stevegury
Copy link
Member

👍

stevegury added a commit that referenced this pull request Feb 24, 2016
scan should pass upstream a request of Long.MAX_VALUE
@stevegury stevegury merged commit a57bccc into ReactiveX:1.x Feb 24, 2016
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.

3 participants