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

engine: switch to HttpClient (beta-3.0) #467

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

mortend
Copy link
Member

@mortend mortend commented Apr 15, 2023

This switches to use HttpClient on .NET 6 because old WebClient and friends are deprecated, silencing a few compile time warnings.

Note that HttpClient (unlike WebClient) should preferably be created only once and kept alive through the lifetime of an application, in order to not exhaust the number of sockets available under heavy loads.

Also it appears that enabling TLS 1.2 explicit is no longer necessary.

This switches to use HttpClient on .NET 6 because old WebClient and
friends are deprecated, silencing a few compile time warnings.

Note that HttpClient (unlike WebClient) should preferably be created
only once and kept alive through the lifetime of an application, in
order to not exhaust the number of sockets available under heavy loads.

Also it appears that enabling TLS 1.2 explicit is no longer necessary.
@mortend mortend merged commit 9a5dbe8 into fuse-open:beta-3.0 Apr 17, 2023
@mortend mortend deleted the http-client branch April 17, 2023 16:38
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.

1 participant