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

OperatorMerge handle request overflow #2543

Merged
merged 1 commit into from
Jan 28, 2015

Conversation

davidmoten
Copy link
Collaborator

Calling

request(2);
request(Long.MAX_VALUE-1);

hangs OperatorMerge because the internal requested count overflows and becomes negative.

This PR adds fix and unit test.

I imagine this will be in other operators as well. I'll have a hunt around.

@akarnokd
Copy link
Member

We had a conflicting merge. Could you rebase this onto the current master?

@akarnokd akarnokd added the Bug label Jan 28, 2015
@davidmoten
Copy link
Collaborator Author

rebased (I think).

@akarnokd
Copy link
Member

Thanks.

akarnokd added a commit that referenced this pull request Jan 28, 2015
OperatorMerge handle request overflow
@akarnokd akarnokd merged commit 19a66b7 into ReactiveX:1.x Jan 28, 2015
@benjchristensen benjchristensen mentioned this pull request Feb 3, 2015
@davidmoten davidmoten deleted the merge-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.

None yet

2 participants