We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 699ae37 commit 83e2c64Copy full SHA for 83e2c64
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNITcpHandle.cs
@@ -364,6 +364,10 @@ void Cancel()
364
if (ipAddresses[i] != null)
365
{
366
sockets[i] = new Socket(ipAddresses[i].AddressFamily, SocketType.Stream, ProtocolType.Tcp);
367
+
368
+ // enable keep-alive on socket
369
+ SetKeepAliveValues(ref sockets[i]);
370
371
sockets[i].Connect(ipAddresses[i], port);
372
if (sockets[i] != null) // sockets[i] can be null if cancel callback is executed during connect()
373
0 commit comments