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
Just checked how long it takes to resolve nx.local, where that host does not exist on the network. I think the problem lies in do_avahi_resolve_name() function in nss.c, which converts AF_UNSPEC to sequential IPv4, then IPv6 resolution separately. I think we need a way to request both at the same time. Let avahi resolve them in parallel and return both. Because it is serializing addresses to text records, it should be handled fine even when mixed addresses in single response.
When I have mdns_minimal nss plugin used, the query time getent ahosts nx.local takes 10s on my Fedora. It takes even more on OpenSUSE for some reason. I think even 5s is too much in general, which it takes when mdns4_minimal is used.
I think Avahi should be smart enough and speed up response time in case only one of address families returns an address. The other family might not be used, but it should not wait for long time to ensure that.
The text was updated successfully, but these errors were encountered:
I think we want the plugin to forward AF_UNSPEC family queries to the avahi-daemon over the socket. Now it starts separate queries with RESOLVE-NAME-IPV{4,6}, but they are made sequentially. That has unfortunate result that it doubles timeout for any used name. If we forward it to avahi-daemon in a way requesting all address families, it would be able to speed up response once we received at least response from one of the families.
Just checked how long it takes to resolve nx.local, where that host does not exist on the network. I think the problem lies in
do_avahi_resolve_name()
function in nss.c, which converts AF_UNSPEC to sequential IPv4, then IPv6 resolution separately. I think we need a way to request both at the same time. Let avahi resolve them in parallel and return both. Because it is serializing addresses to text records, it should be handled fine even when mixed addresses in single response.When I have mdns_minimal nss plugin used, the query
time getent ahosts nx.local
takes 10s on my Fedora. It takes even more on OpenSUSE for some reason. I think even 5s is too much in general, which it takes when mdns4_minimal is used.I think Avahi should be smart enough and speed up response time in case only one of address families returns an address. The other family might not be used, but it should not wait for long time to ensure that.
The text was updated successfully, but these errors were encountered: