broker: Never block reading a requester's stdin #13

Merged
dev merged 1 commits from fix-stdin-blocking into main 2026-11-28 18:09:18 +00:00
1 Commits
Author SHA1 Message Date
jackos1998andClaude Opus 5.5 00d3c65cfd broker: Never block reading a requester's stdin
CI / Check (pull_request) Successful in 4m53s
CI / Check (push) Canceled after 3m47s
The reader passed stdin to the operation through a channel 16 deep and
waited when it was full, so a requester sending stdin to an operation
that doesn't read it stopped the reader, and the broker no longer saw
it disconnect: the operation kept running.

Buffer stdin without waiting, up to 1 MiB (a requester sending more is
treated as gone), and drop it for operations that don't read it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 17:28:51 +00:00