Skip to content

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

Merged
mortend merged 1 commit into
fuse-open:beta-3.0from
mortend:http-client
Apr 17, 2023
Merged

engine: switch to HttpClient (beta-3.0)#467
mortend merged 1 commit into
fuse-open:beta-3.0from
mortend:http-client

Conversation

@mortend

@mortend mortend commented Apr 15, 2023

Copy link
Copy Markdown
Member

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