Nine members at a 60s first-token wait took 660s, past the 600s a client
waits. The client hung up first and the member it was on was told as the
failure. Nothing bounded the sum of the members' waits.
groupBudget (540s) counts from the walk's start. A member asked with less
left than its FirstToken gets only what is left (holdWriter.budgeted); when
that runs out, or the walk has used the budget, no further member is asked,
the member isn't rested (it was cut short, not slow), and the error is a 504
naming the budget. A client cancel was already read first (nobody blamed),
and is unchanged.
Reported by mycf_711 in #5112; #5113 stays open for the reporter.
Run at the pushed head (rebased on origin/main 7aff42d86): mote-run
go test ./internal/gateway -timeout 45m: ok (667s); GOOS=linux and
GOOS=windows go vet ./internal/gateway and gofmt -l: clean.
TestGroupWalkStopsAtItsBudget waits on the response, not a duration; with
gateway.go's change reverted it is red (the second member is asked after
60s and answers 200).
Not tried: a real 9-member group against a vendor; the budget is not
configurable per group.