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

OperatorConcat - prevent request overflow and fix race condition #2951

Merged
merged 1 commit into from
May 15, 2015

Conversation

davidmoten
Copy link
Collaborator

Used BackpressureUtils to prevent request overflow and added an n > 0 check for requests to ensure that subscribeNext is not called concurrently (race condition).

No unit tests written. Let me know if you think worth the effort.

@akarnokd
Copy link
Member

Could you add your usual unit test for this?

@davidmoten
Copy link
Collaborator Author

Sure

@davidmoten
Copy link
Collaborator Author

Done, added unit test that failed on original codebase for request overflow. Didn't add a unit test for n>0 check though (want that too?).

@akarnokd
Copy link
Member

Not necessary.

@akarnokd
Copy link
Member

Thanks!

akarnokd added a commit that referenced this pull request May 15, 2015
OperatorConcat - prevent request overflow and fix race condition
@akarnokd akarnokd merged commit 425a6f4 into ReactiveX:1.x May 15, 2015
@benjchristensen benjchristensen mentioned this pull request May 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants