Skip to content

Why is SO_REUSEADDR disabled for Windows? #65

@MacGritsch

Description

@MacGritsch

Hi,

also under Windows SO_REUSEADDR is needed, otherwise you can not bind if you are restarting a crashed service.

http://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t

2341c2341
< #ifndef WIN32

---
> //#ifndef WIN32 //needed for windows too
2351c2351
< #endif

---
> //#endif

filemerge

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