Skip to content

Should we have SO_REUSEADDR on listening sockets? #1267

Closed
@everslick

Description

@everslick

Closing a listening socket that has open connections leaves the socket in a TIME_WAIT state for approximately 2 minutes. This prevents the socket from being reused immediately. IMHO on an embedded device this is not very useful because we will most likely start the same server on the same port anyway.

Setting the SO_REUSEADDR on the listening socket would make the port available immediately again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions