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:
github-actions[bot] 2020-08-18 23:23:51 +00:00 committed by GitHub
parent bc40f40382
commit ae1981f931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ namespace System.Net.Quic.Implementations.Mock
}
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;
_localEndPoint = (IPEndPoint?)socket.LocalEndPoint;