Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when SO_REUSEADDR is not set. #181

Merged
merged 3 commits into from
Apr 3, 2024

Conversation

flaviojs
Copy link
Contributor

This is a "minimum effort" warning.
When a socket bind/listen fails without SO_REUSEADDR then the ip-port combination might be in the TIME_WAIT state.
There is no way to test if that is actual case, so just warn the user.

This is a "minimum effort" warning.
When a socket bind/listen fails without SO_REUSEADDR then the ip-port combination might be in the TIME_WAIT state.
There is no way to test if that is actual case, so just warn the user.
@flaviojs
Copy link
Contributor Author

I'm not a network person, I'm here mostly for the virtual hardware.
If you can think of a warning that is more clear for network people, then please change the warning.

@flaviojs
Copy link
Contributor Author

@grossmj: for now I'm only doing PRs handling what coverity detects (like this one) and only 1 at a time.
If you want specific PRs to be on hold then say so in the PR (and say why) so I can move on to another PR.

@grossmj
Copy link
Member

grossmj commented Mar 23, 2024

Ok got it. Yes I would like to have this one on hold. I haven't had time to check why the situation you described could happen.

common/net.c Outdated Show resolved Hide resolved
@flaviojs flaviojs force-pushed the warn-SO_REUSEADDR-not-set branch from 59b2177 to cf73f37 Compare April 2, 2024 15:24
@flaviojs
Copy link
Contributor Author

flaviojs commented Apr 2, 2024

SO_REUSEADDR is also being set in UDP sockets, no idea what the effect is.

@grossmj grossmj merged commit 40a1618 into GNS3:master Apr 3, 2024
1 of 2 checks passed
@flaviojs flaviojs deleted the warn-SO_REUSEADDR-not-set branch April 3, 2024 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants