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

1.x: create+subscribeOn avoid same-pool deadlock #5091

Merged
merged 1 commit into from
Feb 11, 2017

Conversation

akarnokd
Copy link
Member

This PR allows to fix the same-pool deadlock that may happen with create() (formerly fromEmitter) and subscribeOn as subscribeOn by default schedules the requests behind a running emitter and thus the internal request amount may not get updated, leading to unnecessary dataloss.

See #4735.

In the update, if subscribeOn detects its upstream is OnSubscribeCreate, it no longer reschedules requests for it. For other, non-immediate cases, a new overload allows specifying the requestOn parameter that should be false if there is a create(Action1, BackpressureStrategy) in the sequence upstream.

@akarnokd akarnokd added this to the 1.3 milestone Feb 10, 2017
@akarnokd akarnokd merged commit 828db38 into ReactiveX:1.x Feb 11, 2017
@akarnokd akarnokd deleted the SubscribeOnRequestOn branch February 11, 2017 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants