Skip to content

eval: enforce an elapsed budget for paired smoke dispatch - #599

Merged
HouMinXi merged 2 commits into
mainfrom
eval/574-smoke-elapsed-budget
Nov 27, 2026
Merged

HouMinXi merged 2 commits into
mainfrom
eval/574-smoke-elapsed-budget

Conversation

@HouMinXi

Copy link
Copy Markdown
Owner

Summary

Follow #597 with an opt-in, monotonic elapsed budget for the direct smoke. Start before preflight, pin the budget in the journal, and recheck after a durable reservation and after connect before writing HTTP bytes. Each socket read uses the remaining budget as well as the idle timeout, including when the peer keeps making progress.

  • Keep durable unknown reservations after an incomplete exchange. If local receipt writing overruns the budget after a complete reply, preserve the receipt and do not admit the next send.
  • This is a dispatch and I/O-progress limit, not a hard process return deadline across DNS, TLS setup or filesystem sync. No live transport call or gateway change.

Verification

237 offline tests passed under each of two hash seeds. Socketpair controls cover normal length/chunked framing, time spent persisting a reservation, late connect with no POST, paced response reads, and late terminal journal writes. Ruff and git diff checks passed.

Related to #574, #595 and #597.

@HouMinXi
HouMinXi marked this pull request as ready for review November 27, 2026 08:06
@HouMinXi
HouMinXi merged commit edeb1f4 into main Nov 27, 2026
13 checks passed
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