Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mdns-avahi] utilize Avahi events for complete result handling
This commit enhances `Mdns::Publisher` using Avahi to utilize the events `AVAHI_BROWSER_ALL_FOR_NOW` and `CACHE_EXHAUSTED`, which notify that all records have been processed and no further results are expected in the near future. This improvement prevents premature "resolved" callbacks after receiving only the initial IPv6 address, thereby improving host and service address resolution. The `Publisher` now waits for these events to ensure it gathers all available addresses from the cache and query responses before signaling resolved callback.
- Loading branch information