You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After migrating to 1.0, we force a zenoh session to listen on
{/// Which endpoints to listen on. E.g. tcp/0.0.0.0:7447./// By configuring the endpoints, it is possible to tell zenoh which are the endpoints that other routers,/// peers, or client can use to establish a zenoh session./// For TCP/UDP on Linux, it is possible additionally specify the interface to be listened to:/// E.g. tcp/0.0.0.0:7447#iface=eth0, for listen connection only on eth0listen: {/// The list of endpoints to listen on./// Accepts a single list (e.g. endpoints: ["tcp/[::]:7447", "udp/[::]:7447"])/// or different lists for router, peer and client (e.g. endpoints: { router: ["tcp/[::]:7447"], peer: ["tcp/[::]:0"] }).////// See https://docs.rs/zenoh/latest/zenoh/config/struct.EndPoint.htmlendpoints: {router: ["tcp/[::]:7447"],peer: ["tcp/[::]:0"]},}
Users might not want to use tcp and build zenoh without the feature flag. Now they need to overwrite the default endpoints to address the "unsupported protocol" but it's not allowed to set an empty endpoint in the field. This means we force a peer-mode session always explicitly listen on specific endpoint.
Following 1., this necessary change is not documented in the migration guide.
Does exposing this detail really matter for user experience? We used to have a zenoh session in peer mode and don't need to specify its listening endpoints. It can either connect to the other sessions or listen on some endpoints if needed. Now we always need to set one if we don't use tcp in peer mode or we need to change the mode of session.
The text was updated successfully, but these errors were encountered:
It is allowed to set an empty listen/endpoints array!
We changed this as before it was not possible to make a peer not listening to any endpoint (as setting an empty list was making it listen on the default). You can now explicitly set an empty array to make it not listen to anything.
Now it indeed force users to change the default when deactivating TCP feature. It is in my opinion not a big problem as TCP is kind of our default transport.
We could eventually make so that when TCP is disabled the configured TCP listener endpoints are ignored. But I'm not for it.
@OlivierHecart's suggestion is correct that we can wipe out the default TCP listening endpoint by setting
{listen: {endpoints: [""],}}
This pattern could be improved since our default config doesn't follow the compiling features. We will adjust the default config and warn the users that the TCP listening endpoints are neither used nor set according to the given config.
Describe the release item
After migrating to 1.0, we force a zenoh session to listen on
The text was updated successfully, but these errors were encountered: