process, stdio: a kept call paces on a stopping tool runner; the ask's bound is a setting (H-A-549)

Review round 1: the process caller read only a reply's error, so a kept call
(CallKept, e.g. seat:git.trees) ended at once on stopping instead of pacing until
the new runner answers. requestAsk now reads error-kind stopping as
busretry.Stopping, which busretry.Fault counts as a transport fault, as away. The
Go stdio Ask's 60 s bound becomes the setting ask-bound (default 60 s), read by
the settings reader.

Builds: design 47 H2 H-A-542, H-A-549
This commit is contained in:
2026-11-23 12:05:15 +01:00
parent 6459dee6aa
commit fdb85e8bd5
6 changed files with 63 additions and 19 deletions
+4 -3
View File
@@ -424,11 +424,12 @@ func TestAStoppingRunnersCallIsAskedAgainUntilTheNewRunnerAnswers(t *testing.T)
t.Setenv(ServedAs, "builder")
clock := time.Unix(0, 0)
var paused []time.Duration
wasPause, wasNow, wasBound := pause, askNow, askBound
t.Cleanup(func() { pause, askNow, askBound = wasPause, wasNow, wasBound })
wasPause, wasNow := pause, askNow
t.Cleanup(func() { pause, askNow = wasPause, wasNow })
pause = func(d time.Duration) { paused = append(paused, d); clock = clock.Add(d) }
askNow = func() time.Time { return clock }
askBound = 10 * time.Second
// The bound is the setting ask-bound (H-A-549), here 10 s for its default 60 s.
t.Setenv("MESH_CONFIG_ASK_BOUND", "10s")
inR, inW := io.Pipe()
outR, outW := io.Pipe()
go func() {