Skip to content

OperatorConcat - prevent request overflow and fix race condition#2951

Merged
akarnokd merged 1 commit intoReactiveX:1.xfrom
davidmoten:concat-request-overflow
May 15, 2015
Merged

OperatorConcat - prevent request overflow and fix race condition#2951
akarnokd merged 1 commit intoReactiveX:1.xfrom
davidmoten:concat-request-overflow

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 davidmoten force-pushed the concat-request-overflow branch from 63fde7d to bad4d40 Compare May 15, 2015 07:52
@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