Skip to content

Remove Socket.ConnectAsync workaround #4259

@pepone

Description

@pepone

// Workaround: a canceled Socket.ConnectAsync call can return successfully but the Socket is closed because
// of the cancellation. See https://github.com/dotnet/runtime/issues/75889.
cancellationToken.ThrowIfCancellationRequested();

Seems this was fixed in .NET 10 dotnet/runtime#116943

We can probably remove this workaround in main, we should test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions