-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Restart of server fails because of disabled reuseaddr socket option #6493
Comments
3 tasks
In that case you best option is to set the reuseaddr configuration flag for your application. open62541/include/open62541/server.h Line 181 in 9229a2f
That way the socket is set reusable automatically. |
We can set the option in the server. |
Sure we can discuss. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Follow up of issue #6463
Background Information / Reproduction Steps
The provided fix with commit 00206cd does not work (at least on linux systems).
Although the function UA_EventLoopPOSIX_setReusable succeeds with UA_STATUSCODE_GOOD when closing the port,
the socket can not be opened sporadically at the next restart.
It seems that the socket option SO_REUSEADDR only has an effect if called before the function bind.
Checklist
Please provide the following information:
The text was updated successfully, but these errors were encountered: