Remove dead DnsEndPoint allocation in HttpConnectionPool (#42778)
authorStephen Toub <stoub@microsoft.com>
Sun, 27 Sep 2020 12:35:47 +0000 (08:35 -0400)
committerGitHub <noreply@github.com>
Sun, 27 Sep 2020 12:35:47 +0000 (08:35 -0400)
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs

index 715cab8..25013a1 100644 (file)
@@ -1424,7 +1424,6 @@ namespace System.Net.Http
             }
 
             Stream stream = tunnelResponse.Content.ReadAsStream(cancellationToken);
-            EndPoint remoteEndPoint = new DnsEndPoint(_originAuthority.IdnHost, _originAuthority.Port);
 
             return (stream, null);
         }