sing-box/docs
世界 5a3c293ca0
usbip: enforce broadcast invariant and clone-on-stale to close recurring races
- Route every reserved-state mutation through withInventoryWrite; the
  lease insert path now broadcasts so extended subscribers see the busy
  transition immediately instead of waiting for the next mutation. Folds
  cleanupExpiredLocked changes into the broadcast decision on every
  IssueLease early-reject path. Rename the field to inventory and force
  read/write/write-quiet sites through dedicated accessors so future
  callers cannot bypass the invariant.
- Mirror the linux clone-then-swap pattern in darwinExportHost.Reconcile
  via cloneDarwinExport, so the ledger's unlocked Snapshot / LeaseCheck
  reads never observe a half-mutated stale flag. Documented as
  docs/adr/0001-export-pointer-immutability.md and on the Export
  interface; both hosts now share the applyStaleClones helper.
- Rewrite 27 if (_, )?err := …; err != nil sites to assign-then-check
  per .claude/rules/go-syntax.md.
- Delete parse / builder / tautological tests forbidden by
  .claude/rules/code-test.md (option/usbip_test.go,
  iso_scheduler_test.go, usbhost_darwin_status_test.go).
- Tag nine more usbip files with linux || (darwin && cgo); fixes
  pre-existing windows / android lint failures because the protocol
  types were only consumed by tagged code.
2026-05-16 12:29:05 +08:00
..
adr usbip: enforce broadcast invariant and clone-on-stale to close recurring races 2026-05-16 12:29:05 +08:00
assets Update documentation 2023-03-05 23:37:12 +08:00
clients Add package_name_regex route, DNS and headless rule item 2026-05-14 21:56:20 +08:00
configuration Fix hysteria2 realm server 2026-05-15 07:43:30 +08:00
installation Add cloudflared inbound 2026-05-14 21:56:20 +08:00
manual Update uTLS to v1.8.2 2026-01-17 04:54:18 +08:00
changelog.md Bump version 2026-05-15 13:19:21 +08:00
CNAME Add log and dns documentation 2022-07-08 18:41:18 +08:00
deprecated.md Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-05-14 21:56:20 +08:00
deprecated.zh.md Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-05-14 21:56:20 +08:00
index.md documentation: Update client status 2024-09-13 10:09:08 +08:00
index.zh.md documentation: Update client status 2024-09-13 10:09:08 +08:00
migration.md Reject pure-IP rule-set references without match_response 2026-05-14 21:56:20 +08:00
migration.zh.md Reject pure-IP rule-set references without match_response 2026-05-14 21:56:20 +08:00
sponsors.md documentation: Remove warp ads 2026-04-20 09:49:39 +08:00
support.md documentation: Remove unused 2024-08-19 06:39:33 +08:00
support.zh.md documentation: Remove unused 2024-08-19 06:39:33 +08:00