devbox/internal
shoemoney 963ece58b0 feat(transfer): harden the WAN sync path — timeouts, retry, parallel I/O, download gzip 🌐⚡
Now the hub is WAN-reachable, the transfer path needed real hardening:

- ⏱️  request timeout fix: replaced the 30s TOTAL http.Client.Timeout (which
  killed a 256MiB blob mid-transfer over a slow link) with granular dial / TLS /
  response-header timeouts + TCP keepalive. Body transfer is no longer wall-clocked.
- 🔁 retry + exponential backoff on transient blob transfers (network / 5xx),
  3 attempts; 4xx fails fast. Blob GET/PUT are content-addressed (idempotent),
  so retry is safe; control calls are left alone.
- 🚀 parallel blob uploads (push) and parallel chunk downloads (pull reassembly),
  bounded pools (8), sharing the existing rate limiter. WAN is RTT-bound — this
  keeps the pipe full instead of one-blob-at-a-time.
- 🗜️ download (response) gzip: round 1 compressed only uploads, but a clone is
  download-heavy. Client negotiates gzip explicitly (so the rate limiter counts
  wire bytes), hub streams the response through gzip, client decompresses
  bomb-safely. Gated by the same settings.transfer.compress flag.

Tests: retry transient-then-success + 4xx-no-retry, gzip download round-trip.
All existing push/pull round-trips green under -race (refactors behavior-preserving).
2026-06-30 13:15:17 -05:00
..
chunk feat(device): --json output, streaming chunker, pause --for, per-mount exclude, rescan knob ✨ 2026-06-30 12:29:02 -05:00
config feat(device): --json output, streaming chunker, pause --for, per-mount exclude, rescan knob ✨ 2026-06-30 12:29:02 -05:00
control feat(device): --json output, streaming chunker, pause --for, per-mount exclude, rescan knob ✨ 2026-06-30 12:29:02 -05:00
daemon feat(transfer): opt-in gzip blob compression for WAN sync 🌐🗜️ 2026-06-30 12:34:27 -05:00
hooks refactor(M7): cmp.Or for editor env, share hooks.Executable (ponytail) ♻️ 2026-06-23 01:32:22 -05:00
hub feat(transfer): harden the WAN sync path — timeouts, retry, parallel I/O, download gzip 🌐⚡ 2026-06-30 13:15:17 -05:00
identity feat(M2): wire protocol foundation 🔌 2026-06-22 23:30:01 -05:00
ignore fix(sec): secret guard no longer leaks creds — case-insensitive + more patterns 🔑🛡️ 2026-06-23 02:15:28 -05:00
manifest feat(device): --json output, streaming chunker, pause --for, per-mount exclude, rescan knob ✨ 2026-06-30 12:29:02 -05:00
secret chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
syncer feat(transfer): harden the WAN sync path — timeouts, retry, parallel I/O, download gzip 🌐⚡ 2026-06-30 13:15:17 -05:00
transport feat(transfer): harden the WAN sync path — timeouts, retry, parallel I/O, download gzip 🌐⚡ 2026-06-30 13:15:17 -05:00
watch fix: foundation hardening from review pass 🛡️ 2026-06-22 23:24:55 -05:00