Skip to content

chore: bump boxo to main, kad-dht v0.42.1 - #171

Merged
lidel merged 1 commit into
mainfrom
chore/boxo-v0.42.0
Jul 27, 2026
Merged

chore: bump boxo to main, kad-dht v0.42.1#171
lidel merged 1 commit into
mainfrom
chore/boxo-v0.42.0

Conversation

@lidel

@lidel lidel commented Jul 27, 2026

Copy link
Copy Markdown
Member

Picks up the shorter /routing/v1 stale windows from ipfs/boxo#1195, so caches stop serving a two-day-old answer while someguy is healthy. max-age is unchanged. The changelog has the new values.

go-libp2p-kad-dht v0.42.0 dropped the context argument from its constructors, so cancelling the context that built a DHT no longer stops it. someguy relied on exactly that and had no Close() at all, so it grew one, matching how kubo closes both clients on stop.

  • drop ctx from dht.New, and from newBundledDHT which no longer used it
  • add bundledDHT.Close, called on shutdown through io.Closer so --dht=standard is covered too
  • update the two Cache-Control assertions the new stale windows changed

boxo is pinned to the current main HEAD (ipfs/boxo@1c8cf646367f) rather than the v0.42.0 tag, because ipfs/boxo#1195 landed after that release.

Supersedes #168 and #166. The kad-dht bump alone breaks the build on the constructor change, so neither passes CI on its own.

Picks up the shorter /routing/v1 stale windows from ipfs/boxo#1195, so
caches stop serving a two-day-old answer while someguy is healthy.

go-libp2p-kad-dht v0.42.0 dropped the context argument from its
constructors. Cancelling the context that built a DHT no longer stops
it, so someguy lost its only shutdown path and had to grow an explicit
one, the same way kubo closes both clients on stop.

- drop ctx from dht.New, and from newBundledDHT which no longer used it
- add bundledDHT.Close and call it on shutdown, covering the standard
  client too via io.Closer
- update the Cache-Control assertions the new stale windows changed
- restore the changelog section order broken in #169
@lidel
lidel merged commit 248a3e6 into main Jul 27, 2026
7 checks passed
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