-
Notifications
You must be signed in to change notification settings - Fork 98
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
Configurable bind addrs #471
Configurable bind addrs #471
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
71adb50
to
3a6323f
Compare
Rebased off main and applied the appropriate |
Multi-daemon example breaks on Windows but not on Linux.
@phil-opp did you update those logs in an attempt to debug? |
Ahh - Fixing. |
clients can not connect to `0.0.0.0` on windows.
If a window's users configures that to But if a Window's users configures it to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I think we should use address
as overall name instead of bind
which can mean many things.
This reverts commit 4af82a4.
…f just the port" This reverts commit 1ba763c.
…ocket We are not interested in the local bind address of the daemon. Instead, we want to use the IP address under which the daemon is available from other machines. This should also avoids the issue that connecting to 0.0.0.0 is not possible on Windows (we want to use 0.0.0.0 as default bind address).
Yes, but I think it's also an improvement that we might want to keep.
Thanks a lot for debugging this! This is indeed the issue. However, I think the correct fix is to use the public IP instead of the local bind address for the registration. One way to get the public IP of the daemon could be to take the I opened a PR against your PR to implement this change: Michael-J-Ward#1. I also tested this change on our CI in #473. |
Ready to go. One follow-on item raised by @haixuanTao: a proper "distributed-test" example where the daemon's run separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
I opened #475 to track the idea of doing a proper multi-machine test on CI.
Changelog
0.0.0.0:0
0.0.0.0:DORA_COORDINATOR_PORT_DEFAULT
The CLI provides the defaults, so this shouldn't break any existing run commands.
Notes
cargo fmt --all
makes a lot of unrelated changes. Do you have arustfmt
config somewhere that I can use? Similarly,cargo clippy
gives a fair number of lints.If you'd like, let me know if you want me to include those - either in addition to this or as a separate PR.EDIT: I realized my own
rustfmt
was running off a custom config.Ref #459