pingqiuandClaude Opus 5.5 ea127a0181 hostlimit: fetch waits are non-blocking, checked and bounded
- A limiter's first fetch checks the host configuration under
  configuration.lock, publishing it when absent (configGuard, now shared
  with cut admission): a fetch-only process with other flags gets ErrConfig.
- No blocking lock: with every slot held, one fetch per process polls
  every slot each 20 ms (the others wait for its turn, within their
  context). An ended wait leaves no lock request, descriptor or goroutine;
  lockBlocking is removed.
- The waiting is unordered and bounded by the caller's context alone; the
  docs say so instead of promising a kernel queue.
- A slot taken when the context has already ended is given back, with the
  context's error.
- INV-HOST-FETCH-CAP-001, M7 and the v1.1 note state the contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:20:40 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%