rproxy, sww: keep the breaker and stop tests from failing under load (closes #474) #475

Merged
clawbot merged 1 commits from issue-474-breaker-and-stop-tests-under-load into next 2026-11-19 19:59:34 +01:00
1 Commits
Author SHA1 Message Date
clawbot 123f34679f rproxy, sww: keep the breaker and stop tests from failing under load (closes #474)
check / check (push) Waiting to run
The circuit breaker reads the time through a clock the handler holds,
which is time.Now outside tests. The test that answers waf's
questions with answers rproxy cannot pass on stops that clock, so how
long its requests take on a slow host no longer decides whether the
breaker opens or turns the next request away.

The test that stops rproxy mid-request sets its read deadline from the
stop, not from the send, so a slow wait for the app no longer shortens
it.

Model: opus-5-5
2026-11-19 18:30:44 +00:00