Files
magpie/internal
yetone c5e71f7a0b netproxy: a system proxy read that answers within readWait is what the request waiting for it goes through (#3421)
Review of 3370a79f7 (JoeyWu-tech's #3421). Breaking its "a request
waits for a read until since+readWait" by hand (wait = 0, so every
request went on at once with the proxy held, Proxy{} on a first start)
turned its tests red only through an incidental read count, not through
what the wait is for: magpie started where only the system's proxy
reaches the vendors sending its first requests through that proxy, not
direct.

TestQuickSystemProxyReadIsWaitedFor holds a read, starts a request, and
answers the read at once with http://127.0.0.1:7890: the request must
take it.

Run (tree of this stack, go1.26.8, darwin/arm64):
- wait = 0 by hand: red, "the first read answered at once, but the
  request waiting for it took {URL: Mode:...}" (no proxy). Restored:
  green.
- go test -tags nogui -race -count=20 ./internal/netproxy: ok (72s).
The stack's full-suite record is in the #3362 fix's body.
2026-10-24 21:33:06 +08:00
..
…
…
…
…
…