Skip to content

Allow setting SO_REUSEPORT on Sockets #34799

@dnfield

Description

@dnfield

It appears to be impossible today to set SO_REUSEPORT on a socket. I'd like to do this on macOS in particular to be able to write mDNS related code in Dart.

One approach might be to add a reusePort option (which I suppose would be ignored on Windows platforms) to bind and propogate that through to the various socket impelmentations the way that reuseAddress is. Another approach would be to simply allow Socket consumers to set arbitrary options on their sockets.

Related to #34782

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions