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

Make SecureConversation inner channel factory share the same HttpClient as outer factory #4438

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

mconnew
Copy link
Member

@mconnew mconnew commented Nov 20, 2020

When using SecureConversation, an inner channel factory is used to obtain the Secure Conversation token. When using a load balancer, this can result in the session establishment and service request being made to different backend hosts resulting in the service call failing.

Copy link
Member

@StephenMolloy StephenMolloy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the code upstream that gets into these changes, but I have some thread safety questions, which is always a concern with a ref-counting approach.

@HongGit HongGit added this to the 5.0.2 milestone Dec 10, 2020
@mconnew
Copy link
Member Author

mconnew commented Dec 16, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mconnew
Copy link
Member Author

mconnew commented Jan 5, 2021

@StephenMolloy, can you review the latest changes?

Copy link
Member

@StephenMolloy StephenMolloy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@HongGit HongGit merged commit 4dc0f68 into dotnet:master Jan 12, 2021
HongGit added a commit that referenced this pull request Jan 14, 2021
#4492)

* update arcade in release/3.2 branch and cherry-pick one more checkin from master

* Make SecureConversation inner channel factory share the same HttpClient as outer factory (#4438)

* Make SecureConversation inner channel factory share the same HttpClient as outer factory

* Fix lock semantics ref counting in mrucache

Co-authored-by: Matt Connew <matt.connew@microsoft.com>

Co-authored-by: Matt Connew <mconnew@microsoft.com>
Co-authored-by: Matt Connew <matt.connew@microsoft.com>
@mconnew mconnew deleted the ShareHttpClientSCT branch October 11, 2023 17:12
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.

3 participants