Skip to content

Drop usage of SO_EXCLUSIVEADDRUSE on Windows #928

Description

@njsmith

I recently saw a claim that contra the MSDN documentation, using SO_REUSEADDR on Windows no longer creates a bizarre security hole. We have a script in notes-to-self/ that demonstrates that SO_EXCLUSIVEADDRUSE doesn't break things the way MSDN claims it does; but I never did do a test about whether it fixes things the way MSDN claims it does. So... for all I know, this might be true! In fact, it's possible that both SO_REUSEADDR and SO_EXCLUSIVEADDRUSE are no-ops these days. Is this true? If so, when did it become true? Which versions of Windows are affected?

I suspect that the answers won't affect what we do in Trio itself, but it seems worthwhile to know in any case, so at least we know why we do the quirky platform-specific things we do.

See #39, #72 for more background.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions