8000 fix: cap queued terminal input and socket lines by aorumbayev · Pull Request #139 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

fix: cap queued terminal input and socket lines - #139

Merged
aorumbayev merged 6 commits into
mainfrom
fix/terminal-input-budget
Nov 11, 2026
Merged

aorumbayev merged 6 commits into
mainfrom
fix/terminal-input-budget

Conversation

@aorumbayev
Copy link
Copy Markdown
Member

Caps the input a program has not read, and one request line.

  • Input or report waiting for a program's pty is capped at 4 MiB. A write past it is refused as full.
  • One Input text or Report payload over 1 MiB is refused as invalid in the domain check.
  • A socket request line over 16 MiB is answered invalid and that connection closes.
  • Replies to a program's own queries are never counted or refused.

Decision 252 has the details and the rules this rules out. docs/behaviour.md and book/src/data.md are updated.

… lines

Input a program has not read now counts against a 4 MiB budget per program.
A write past it fails with OpError::Full (kind full) and writes nothing.
Replies to the program's own queries are never counted or refused.
A socket request line over 16 MiB is answered invalid and the connection closes.

Decision 244, docs/behaviour.md and book/src/data.md updated.
@aorumbayev
aorumbayev merged commit 56e9995 into main Nov 11, 2026
19 checks passed
@aorumbayev
aorumbayev deleted the fix/terminal-input-budget branch November 11, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0