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 6b9eb50 commit 83e8b52Copy full SHA for 83e8b52
src/MongoDB.Driver/Core/Connections/TcpStreamFactory.cs
@@ -226,10 +226,10 @@ static void DisposeSocket(Socket socket)
226
static void EnsureConnected(Socket socket)
227
{
228
bool originalBlockingState = socket.Blocking;
229
- socket.Blocking = false;
230
231
try
232
+ socket.Blocking = false;
233
// Try to use the socket to ensure it's connected. On MacOS with net6.0 sometimes Connect is completed successfully even after the socket disposal.
234
socket.Send(__ensureConnectedBuffer, 0, 0);
235
}
0 commit comments