Skip to content

Use SO_REUSEADDR when on TIME_WAIT state #2

@cucuruzel

Description

@cucuruzel

When remserial is used in conjunction with a USB to serial adapter and udev\rules.d to start remserial when the converter is plugged in, after a hard reset (eg. unplug/plug) or soft reset (usbreset) remserial fails to start because of TIME-WAIT state, with message "Couldn't bind port XXXX, aborting: Address already in use".
I would suggest to use SO_REUSEADDR option to overcome this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions