feat(http): HTTP/2 connection core, streams and handshake (step 3 of #72) #717
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!717
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/699-h2-connection-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #699
Step 3 of #72:
std/http/src/h2.trb, the sans-IO HTTP/2 connection core (RFC 9113 sections 3.4, 5, 6.5, 6.9, 6.10): preface and SETTINGS handshake, stream states, header-block sequence over one HPACK decoder/encoder, flow control with explicitconsumedcredit, peer limits and the rapid-reset guard (slots held untilrelease), PING and GOAWAY. No socket, task or channel (step 3b).Two commits as the issue sizes it. Tests:
std/http/tests/h2.test.trb, 42 tests, a client and a server in one program (handshake, request/response with CONTINUATION and trailers, 200000-octet body across the windows, each refusal with level and code, reset/release, 200 generated requests). Docs: NETWORK.md section 12 "As built, step 3", slice 12 row, FIRST-PARTY.md gap 25 (stays open).Local check:
torb format --check,torb checkand the test file in the VM pass; gates run in CI.079934dc14Checklist for head
079934d:std/http/tests/h2.test.trbcovers every acceptance item of #699 (handshake, CONTINUATION split, 200000-octet body across the windows, each refusal with level and code, reset/release with the 1000-open-and-reset loop meetingREFUSED_STREAMat 100, GOAWAY, 200 generated requests). CI combined status is success for this head (gates, tier A, bootstrap linux-x64, pdisc).h2frame.trb(step 2).lib.trb, no socket/task/channel, no change toClientorServer.maxHeaderListSize, control frames capped at 10000, reset memory capped at 1000. Rapid reset is held by the slot-until-releaserule (CVE-2023-44487).Non-blocking:
H2Limits.initialWindowis used for the half-window credit threshold inconsumed, while a stream's real receive window followsownInitialWindow(equal after the ACK). Harmless now; worth a glance when the limits get exposed.431for an oversized list is already listed as a later refinement in the issue; nothing to do here.Merging by rebase.
Post-merge check (orion, 2026-11-12): no "After merge" section and no orion/tasks task links this PR, so no task to close. The change is in no release yet: torbscript/language has no tagged release (project.trb is 0.1.0, nothing tagged). Release is the monthly cadence of docs/design/RELEASE.md section 3 (minor on the first Tuesday, release/0.N and -rc.1 the Tuesday before), so this lands in the next minor. Next step, not done here: the release candidate of the next minor, owner-scheduled per RELEASE.md. Nothing to deploy meanwhile.