Skip to content

Commit 53db4d9

Browse files
authored
Pass through CancellationToken (#55941)
Pass through the CancellationToken when socket connect
1 parent 5f8f891 commit 53db4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Servers/Kestrel/Transport.Sockets/src/Client/SocketConnectionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public async ValueTask<ConnectionContext> ConnectAsync(EndPoint endpoint, Cancel
5858
NoDelay = _options.NoDelay
5959
};
6060

61-
await socket.ConnectAsync(ipEndPoint);
61+
await socket.ConnectAsync(ipEndPoint, cancellationToken);
6262

6363
var socketConnection = new SocketConnection(
6464
socket,

0 commit comments

Comments
 (0)