Avoid using the same DNS records for good.
MODIFY
WalletWasabi/Tor/Http/ClearnetHttpClient.cs
WalletWasabi/Tor/Http/ClearnetHttpClient.cs
@@ -15,11 +15,15 @@ namespace WalletWasabi.Tor.Http
{
static ClearnetHttpClient()
{
- HttpClient = new HttpClient(new HttpClientHandler()
+ var socketHandler = new SocketsHttpHandler()
{
- AutomaticDecompression = DecompressionMethods.GZip,
- SslProtocols = IHttpClient.SupportedSslProtocols
- });
+ AutomaticDecompression = DecompressionMethods.All,
+ PooledConnectionLifetime = TimeSpan.FromMinutes(5)
+ };
+
+ socketHandler.SslOptions.EnabledSslProtocols = IHttpClient.SupportedSslProtocols;
+
+ HttpClient = new HttpClient(socketHandler);
}
public ClearnetHttpClient(Func<Uri> destinationUriAction)

Avoid using the same DNS records for good.

https://github.com/dotnet/extensions/issues/1345#issuecomment-480548175