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() - fix lost requests race condition #3078

Merged
merged 1 commit into from Aug 12, 2015

Conversation

davidmoten
Copy link
Collaborator

As per #3073 a race condition in OperatorSwitch means that requests can be lost. This PR uses ProducerArbiter to ensure all unfulfilled requests are carried through to the next Observable.

I also changed InnerSubscriber to be a static class as opposed to an inner class just to decouple it from surrounding state.

@akarnokd akarnokd added the Bug label Jul 23, 2015
@akarnokd
Copy link
Member

Thanks.

akarnokd added a commit that referenced this pull request Aug 12, 2015
switchOnNext() - fix lost requests race condition
@akarnokd akarnokd merged commit 9a84006 into ReactiveX:1.x Aug 12, 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.

None yet

2 participants