Commit Graph
2 Commits
Author SHA1 Message Date
yetone d0ccbbebc6 gateway: the proxy-down tests take a dead port no test server holds (ubuntu CI red at 707fbb249)
TestPluginProxyDownDoesNotRest/http failed on ubuntu CI with "request 0:
200 ... from a": the test closed a listener to get a "down" proxy port,
then started its httptest server, and Linux handed that just-closed port
to the server, so the down proxy answered. TestProxyDownDoesNotRest picks
its port the same way.

Both now take the dead port through deadAddr after their servers are up,
and it is never one of the servers' addresses.

Run: gofmt -l; go vet -tags nogui ./internal/gateway/ for darwin, linux
and windows; go test -tags nogui -count=3 -run
'TestPluginProxyDownDoesNotRest|TestProxyDownDoesNotRest'
./internal/gateway/ (ok); the whole internal/gateway package (ok, 446s).
Tests only, so no other package is affected.
2026-10-15 11:12:15 +08:00
yetone 9547cee9ce gateway: a member whose proxy is down goes on to the next without resting (#381) — with the local proxy (127.0.0.1:1082) not listening, Cursor and SuperGrok in a group failed with "proxyconnect tcp: … connection refused", were counted as failing ("other") and set aside on a backoff that grew with every request, so they stayed out after the proxy came back. A 502 whose error is Go's proxyconnect or socks connect is now "proxy": nothing reached the vendor, the next member is asked as for a request a vendor couldn't read, and nobody rests. The Routing page tags it "proxy not reachable" and says the request never reached the vendor, in English and Chinese. TestProxyDownDoesNotRest (HTTP and SOCKS proxies) and routing-proxy.test.cjs (Chromium, WebKit, en/zh) fail without the change; routing-shape, click-scroll, old-webkit pass. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass. (#381) 2026-10-01 12:44:48 +08:00