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

Race condition in ClientRequestResponseConverter. #328

Merged
merged 4 commits into from
Feb 11, 2015

Conversation

NiteshKant
Copy link
Member

For connection pool enabled clients, if the content unsubscription is delayed, it can get into a state where the connection is reused before unsubscription from content. In such a case, the content unsubscription will lead to connection closing, even when the connection is being used for another request.

This also fixes a bug where a content dispose would end up closing the connection. The unsubscription action (closes connection) should not be called if there was no subscription.

For connection pool enabled clients, if the content unsubscription is delayed, it can get into a state where the connection is reused before unsubscription from content. In such a case, the content unsubscription will lead to connection closing, even when the connection is being used for another request.

This also fixes a bug where a content dispose would end up closing the connection. The unsubscription action (closes connection) should not be called if there was no subscription.
@NiteshKant NiteshKant added this to the 0.4.6 milestone Feb 10, 2015
NiteshKant added a commit that referenced this pull request Feb 11, 2015
Race condition in ClientRequestResponseConverter.
@NiteshKant NiteshKant merged commit ab1d5b6 into ReactiveX:0.x Feb 11, 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.

None yet

1 participant