diff options
| author | tv <tv@krebsco.de> | 2026-11-05 03:58:12 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-05 03:58:12 +0100 |
| commit | f7ce22ed0ba4a758bdc7de0f21b6d0cb45a866b1 (patch) | |
| tree | 7c35b83e5ae21bb6253c1f82bbed347667af31b9 /docs/peers.md | |
| parent | a02ed87abf6a0dc9d3f36bafcf333272586093aa (diff) | |
deflate blob chunks
Diffstat (limited to 'docs/peers.md')
| -rw-r--r-- | docs/peers.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/peers.md b/docs/peers.md index 7213e70..a6b69b4 100644 --- a/docs/peers.md +++ b/docs/peers.md @@ -162,6 +162,11 @@ reply brings its current peer list (the first one may have listed nobody: a peer only its neighbours, and a new member isn't one until its registration has spread). Every minute without a sync message from the source is logged as a warning. +A sync message of 1 KiB or more goes deflated, if that makes it at least a tenth +smaller: Automerge sends changes as they are stored, and text or JSON in them shrinks to +about half. The receiver inflates it to no more than the largest sync message it +accepts. + A sync message larger than 16 chunks (16 × `--blob-chunk`, 1 MiB by default) isn't sent: it would be all or nothing, sent again whole after a lost copy, and on a slow link may not arrive within the transport's delivery limit (Mycelium's five minutes). The sender takes it back and offers a |
