You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library currently performs a DNS lookup of the desired host, takes the first
returned IP address and connects to that. Instead, we can just pass the hostname
down to System.Net.Sockets which will do the right thing, potentially trying
multiple addresses if needed.
Co-authored-by: Wojciech Nagórski <[email protected]>
/// Establishes a socket connection to the specified host and port.
32
+
/// Establishes a socket connection to the specified endpoint.
33
33
/// </summary>
34
-
/// <param name="host">The host name of the server to connect to.</param>
35
-
/// <param name="port">The port to connect to.</param>
34
+
/// <param name="endPoint">The <see cref="EndPoint"/> representing the server to connect to.</param>
36
35
/// <param name="timeout">The maximum time to wait for the connection to be established.</param>
37
36
/// <exception cref="SshOperationTimeoutException">The connection failed to establish within the configured <see cref="ConnectionInfo.Timeout"/>.</exception>
38
37
/// <exception cref="SocketException">An error occurred trying to establish the connection.</exception>
/// Establishes a socket connection to the specified host and port.
61
+
/// Establishes a socket connection to the specified endpoint.
66
62
/// </summary>
67
-
/// <param name="host">The host name of the server to connect to.</param>
68
-
/// <param name="port">The port to connect to.</param>
63
+
/// <param name="endPoint">The <see cref="EndPoint"/> representing the server to connect to.</param>
69
64
/// <param name="cancellationToken">The cancellation token to observe.</param>
70
65
/// <exception cref="SshOperationTimeoutException">The connection failed to establish within the configured <see cref="ConnectionInfo.Timeout"/>.</exception>
71
66
/// <exception cref="SocketException">An error occurred trying to establish the connection.</exception>
Copy file name to clipboardExpand all lines: test/Renci.SshNet.Tests/Classes/Connection/HttpConnectorTest_Connect_ProxyClosesConnectionBeforeStatusLineIsSent.cs
0 commit comments