Skip to content

.NET Standard compat: use supported overloads from Socket class #2195

@jdom

Description

@jdom

In our .NET Standard solution I temporarily removed the functionality in IncomingMessageAcceptor as we were using overloads of the Socket class that are not available in .NET Standard. See 30b7a44 for the commit where this was excluded.

We need to update the code to use supported overloads. For stuff like accepting a new connection or listening (stuff that it's not in the hot path), it is fine to use the overload that returns a Task. Nevertheless for the receive operation we need to be performance conscious. We can potentially use a similar approach as in 02753a3 for that particular operation.

In order to open the solution that compiles using .NET Standard (and hence easy to check whether certain overloads are available), check out this readme

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions