Sync shared code from runtime (#25009)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
bc40f40382
commit
ae1981f931
|
|
@ -74,7 +74,7 @@ namespace System.Net.Quic.Implementations.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
Socket socket = new Socket(_remoteEndPoint!.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
|
Socket socket = new Socket(_remoteEndPoint!.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
|
||||||
await socket.ConnectAsync(_remoteEndPoint).ConfigureAwait(false);
|
await socket.ConnectAsync(_remoteEndPoint, cancellationToken).ConfigureAwait(false);
|
||||||
socket.NoDelay = true;
|
socket.NoDelay = true;
|
||||||
|
|
||||||
_localEndPoint = (IPEndPoint?)socket.LocalEndPoint;
|
_localEndPoint = (IPEndPoint?)socket.LocalEndPoint;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue