Skip to content

Conversation

@discordianfish
Copy link
Contributor

Summary

  • libsrc/mdns/MdnsBrowser.cpp:119-170 now keeps each resolver self-contained: the resolver’s resolved signal is handled locally (no shared isAddressResolved signal), link‑local results are ignored on the spot, and the completion signal now carries the hostname so concurrent lookups can’t bleed into one another.
  • include/mdns/MdnsBrowser.h:62-112 reflects the slimmer API—removed the unused slot/signal and updated isFirstAddressResolved to emit both hostname and address.
  • include/utils/NetUtils.h:109-146 listens for the hostname-tagged completion and ignores unrelated emissions, so every resolveMDnsHostToAddress call exits only when its own hostname was resolved.

Courtesy of OpenAI Codex ;)

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

If changing the UI of web configuration, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing setups:

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's body (e.g. Fixes: #xxx[,#xxx], where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature
  • Related documents have been updated (docs/docs/en)
  • Related tests have been updated

PLEASE DON'T FORGET TO ADD YOUR CHANGES TO CHANGELOG.MD

  • Yes, CHANGELOG.md is also updated

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

- libsrc/mdns/MdnsBrowser.cpp:119-170 now keeps each resolver self-contained: the resolver’s resolved signal
  is handled locally (no shared isAddressResolved signal), link‑local results are ignored on the spot, and the
  completion signal now carries the hostname so concurrent lookups can’t bleed into one another.
- include/mdns/MdnsBrowser.h:62-112 reflects the slimmer API—removed the unused slot/signal and updated
  isFirstAddressResolved to emit both hostname and address.
- include/utils/NetUtils.h:109-146 listens for the hostname-tagged completion and ignores unrelated emissions, so
  every resolveMDnsHostToAddress call exits only when its own hostname was resolved.

Courtesy of OpenAI Codex ;)

This fixes hyperion-project#1906
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant