Skip to content

Windows: SO_REUSEADDR allows listening on occupied port #550

Description

@minrk

Context:

Try to run two instances of helloworld.py example

Symptom:

Linux/OS X (expected): second instance raises Address already in use.
Windows: second instance runs happily, but receives no requests until the first instance shuts down.

Cause:

Setting SO_REUSEADDR seems to result in different behavior between Windows and other platforms.

I don't know if it makes sense to simply skip setting REUSEADDR on Windows or what, but it would be nice if tornado's behavior was consistent.

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

    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