Skip to content

peer v0.5.5

Choose a tag to compare

@caoer caoer released this 13 Nov 05:45
· 3 commits to main since this release

peer v0.5.5 — GPL-3.0. peer serve takes state and channel changes as pushes, and a reconnect fetches only what it missed.

  • serve holds a live socket on its state page: roster, keys and channel records reach it as pushes, and a round reads nothing from the page while that socket is synced. Without live support on the page, serve reads the page as before.
  • A channel push socket can resume: the upgrade carries ?after=<cursor>, and a relay that supports it answers with the header x-peer-resume: 1, then the rows past the cursor (one page), then {"synced": <seq>, "more": <bool>}. The client pulls only when more is true. Against a relay without resume, it pulls on every connect, as before.
  • Relay: a push socket that stays silent for more than 100 s gives up its place, so a reconnect after a dropped socket is no longer refused with 429 too_many_sockets.

No new flags, no config change, no change to state-page records.

Install: go install github.com/caoer/peer/cmd/peer@v0.5.5 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.5.5 scripts/release-build.sh in a checkout of the tag (go1.27.3) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md