Skip to content

Conversation

@sanych-sun
Copy link
Member

No description provided.

@sanych-sun sanych-sun requested a review from a team as a code owner October 15, 2025 00:59
@sanych-sun sanych-sun added the bug Fixes issues or unintended behavior. label Oct 15, 2025
@sanych-sun sanych-sun requested review from BorisDog and adelinowona and removed request for adelinowona October 15, 2025 00:59
connectTask = socket.ConnectAsync(endPoint);
#else
var dnsEndPoint = endPoint as DnsEndPoint;
if (dnsEndPoint != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: (endPoints is DnsEndPoint dnsEndPoint)

@sanych-sun sanych-sun requested a review from BorisDog October 22, 2025 17:45
Copy link
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


else
{
connectTask = Task.Factory.FromAsync(socket.BeginConnect(endPoint, null, null), socket.EndConnect);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: Probably regular socket.ConnectAsync can be used?

await Task.WhenAny(connectTask, timeoutTask).ConfigureAwait(false);

if (!connectTask.IsCompleted)
#if !NET472
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add same ifdef in sync Connect

Copy link
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New comment

@sanych-sun sanych-sun requested a review from BorisDog October 22, 2025 19:04
Copy link
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sanych-sun sanych-sun merged commit 5b82ef3 into mongodb:main Oct 22, 2025
33 of 36 checks passed
@sanych-sun sanych-sun deleted the csharp5725 branch October 22, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes issues or unintended behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants