Skip to content

Nothing stops a dependency bump from silently dropping the vendored mdns-sd fix, and the fix isn't upstream yet #319

Closed

Description

@vdavid
  • Problem: Cmdr carries a fork of mdns-sd 0.20.3 in vendor/mdns-sd, swapped in with [patch.crates-io]. It fixes an endless multicast-join retry on VM bridge interfaces (9,322 retries and 29.4 MB of logs from one interface in a 39-hour run). Two gaps:
    1. Nothing guards the patch. [patch] only applies while the requested version matches the vendored one. A bump past 0.20.x (Renovate would do it) makes cargo resolve crates.io again with only a "patch was not used" warning, and the retry storm quietly comes back.
    2. The fix isn't upstream. The PR text and a patch against v0.21.4 are drafted and unsent, so the fork has no end date.
  • Impact: medium. A silent regression brings back a failed join every 5 s and ~0.75 MB of log lines an hour, on every Mac with a VM or container runtime, whenever a browse runs.
  • Solution:
    1. A check (a Go check or a test) that fails unless mdns-sd resolves to the vendor/ path, for example by reading its source in cargo metadata or Cargo.lock.
    2. Send the upstream PR (needs David's go-ahead, since it's public). Once a release carries the fix, drop the fork with the steps in the note's "Dropping the fork" section.
  • Size: small.
  • Clear win or tradeoff? A clear win.

Details: docs/notes/mdns-sd-multicast-join-retry-loop.md and docs/notes/mdns-sd-upstream-pr/pr-draft.md. Moved out of #92's follow-up list, since it doesn't move #92's RAM or CPU targets.

Activity

  1. added
    bug
    on Sep 29, 2026
  2. added 2 commits that reference this issue on Oct 1, 2026
  3. vdavid commented on Oct 1, 2026

    @vdavid
    CollaboratorAuthor

    Part 1 is done in 1ecc696: a new fast-lane check, desktop-rust-vendor-patch-applied, fails if mdns-sd resolves from crates.io, lands under [[patch.unused]], or loses its dependents. Its fixture is real cargo output from a 0.21 bump. Part 2 (dropping the fork) waits for keepsimple1/mdns-sd#513 to merge and ship.

  4. vdavid commented on Oct 5, 2026

    @vdavid
    CollaboratorAuthor

    Done: upstream shipped the fix in mdns-sd 0.21.5 (keepsimple1/mdns-sd#513), so Cmdr now depends on 0.21.5 from crates.io as its floor and the vendor/mdns-sd fork is gone (local commit 086b71a5c, not pushed yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaude-created

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions