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

Remove ServicePointManager usage #4020

Merged
merged 2 commits into from Mar 20, 2024
Merged

Conversation

danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Mar 19, 2024

This PR removes the ServicePointManager usage. With NET ServicePointManager become largely either useless since the HTTP connections are now managed on the HTTP clients or no longer best practice to call. The acceptance test cases contained tweaks that were put in place during a time when the underlying transport SDKs were using web requests instead of HTTP Client. With the more modern versions of the transport, this is no longer necessary. Furthermore, we have also largely embarked on a journey where we configure the throughput relevant defaults that make sense for SC within the transport seam.

For the production code we have decided to remove the HttpDefaultConnectionLimit since there is no global way anymore to manage those connections. Should we need a way to handle connection limits for various cases, we can introduce dedicated settings again in the future. While this is a "breaking change" that will roll out in a minor potentially, we have concluded adding a log warning is not really helping much other than indicating to a user the potential for cleaning up the app.config file.

@danielmarbach danielmarbach changed the title Remove ServicePointManager usage from acceptance tests since generally .NET is moving away from ServicePointManager Remove ServicePointManager usage Mar 19, 2024
@danielmarbach danielmarbach marked this pull request as ready for review March 19, 2024 17:10
…y .NET is moving away from ServicePointManager
…e anymore with modern HTTP Client usage.

We have decided against adding a log warning since generally it is OK to have settings in app.config that are no longer relevant.
@danielmarbach danielmarbach enabled auto-merge (squash) March 20, 2024 09:42
@danielmarbach danielmarbach merged commit 8c6fd7d into master Mar 20, 2024
19 checks passed
@danielmarbach danielmarbach deleted the service-point-manager branch March 20, 2024 09:47
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

2 participants