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

switchOnNext - ensure initial requests additive and fix request overflow #2995

Merged
merged 1 commit into from
Jun 17, 2015

Conversation

davidmoten
Copy link
Collaborator

OperatorSwitch didn't record the total of requests before first inner subscription occurring and had problems with request overflow.

Includes 4 unit tests that failed on the original code.

@akarnokd
Copy link
Member

I'd like to review the whole operator (can't do it today) because I have a feeling a complex serialization is required (i.e., a ProducerObserverArbiter level).

@davidmoten
Copy link
Collaborator Author

Yeah I'm not surprised at that, I suspected the same but put off a full head scratch till later.

@akarnokd akarnokd added the Bug label Jun 1, 2015
@akarnokd
Copy link
Member

I'm merging this as is and perhaps come back later to think about corner cases remaining.

akarnokd added a commit that referenced this pull request Jun 17, 2015
switchOnNext - ensure initial requests additive and fix request overflow
@akarnokd akarnokd merged commit 488fe1c into ReactiveX:1.x Jun 17, 2015
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