Skip to content

Expose native Quinn send completion observation - #5

Open
xenorune wants to merge 3 commits into
runewarp/webtransportfrom
xenorune/quinn-send-stopped
Open

xenorune wants to merge 3 commits into
runewarp/webtransportfrom
xenorune/quinn-send-stopped

Conversation

@xenorune

@xenorune xenorune commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

What

Expose native Quinn send completion through the inherent, read-only h3_quinn::SendStream::stopped() API. Require Quinn 0.11.9, align the h3 and h3-quinn declared Rust minimums with CI at 1.74.1, and keep ordinary H3 finish behavior unchanged.

Why

Applications investigating Runewarp #262 need optional transport completion observation after FIN enqueue. This provides a normal-FIN-only completion boundary: callers must know they used FIN without a prior reset before interpreting None as acknowledgment of FIN and all sent data. It does not establish remote application consumption or receive-half release.

The all-abort limitation remains explicit. Some(code) reports peer STOP before RESET acknowledgment. Native absent send state after RESET can also yield None, and a pending observer has no reliable RESET-ACK wakeup. This API does not promise full-stream freedom or complete abort recovery.

Quinn 0.11.7 and 0.11.8 expose stopped as an async method borrowing &mut self. Quinn 0.11.9 first provides the required read-only static future and declares Rust 1.74.1. The manifest now states those exact minimums instead of allowing unsupported older APIs. Runewarp's existing locked Quinn 0.11.11 satisfies the requirement.

How

Return Quinn's native Result<Option<quinn::VarInt>, quinn::StoppedError> future with Send + Sync + 'static, independent of the adapter borrow. Cancellation releases its waiter/waker; Quinn may retain its per-stream notification entry until a stream event or connection cleanup. The only manifest changes are the Quinn minimum and Rust version; no generic trait change, callback, task or Quinn patch is added.

Four public-adapter regressions use gated UDP ingress to hold FIN ACK processing and RESET receipt, verify exact STOP codes, wake on native connection loss, and check cancellation plus adapter-drop lifetime. Behavioral mutations fail and restored code passes. The same tests pass with Quinn 0.11.11 and 0.11.12, both using proto 0.11.19. PATCHES.md records provenance, exact native source boundaries and validation evidence.

The true integration base df27106fb243baaf867d11441d11cf671ec9da7e naturally selects Quinn 0.11.8/proto 0.11.12 and passes both actual Rust 1.74.1 library checks. Intermediate PR head 89ed55b8874875a7a4c6ace9792fff36708610a3 naturally selects Quinn 0.11.9/proto 0.11.12 and fails h3-quinn on missing set_send_window. This is a PR regression. The previous c854 controls examined a PR head already carrying the API and did not establish inheritance; the inherited-baseline characterization is withdrawn.

The repair aligns the remaining h3 Rust 1.74 declaration to the already configured CI compiler, 1.74.1. A fresh 89ed check copy with only that line changed naturally selects Quinn 0.11.9/proto 0.11.14 and passes both actual 1.74.1 checks. No supplied lock, precise proto selection, direct proto dependency or CI workaround is used. PATCHES.md preserves the exact passing/failing controls and lock/compiler provenance.

Exact tracked-source validation now passes fresh natural fallback, both actual Rust 1.74.1 library checks and all four native regressions on naturally selected minimum Quinn 0.11.9/proto 0.11.14. The generated lock matches the controlled alignment trial; no precise version selection or override is used. The original Quinn 0.11.12 lock is restored byte for byte. Both full workspace configurations pass 347 tests; formatting, strict library/native-test Clippy and strict API rustdoc pass. Full all-target Clippy matches the same 16 baseline warnings, and workspace docs retain six existing bare-URL warnings. Source fingerprints and all true-base/head/temporary-alignment controls are preserved.

The two independent source-only reviews cover original PR head c8544a08e7794f6c7f3d0cafa9b64f2b394a6854; both manifest repairs are post-review. CI, the fresh targeted review and readiness disposition stay with the parent. Readiness remains pending that review; PR2 stays held.

🤖 Written by @dtcristo's agent (GPT-6.1 Sol)

dtcristo and others added 3 commits October 25, 2026 23:09
Co-authored-by: GPT-6.1 Sol <noreply@openai.com>
Co-authored-by: GPT-6.1 Sol <noreply@openai.com>
Co-authored-by: GPT-6.1 Sol <noreply@openai.com>
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.

2 participants