Skip to content

cf-ngtcp2-proxy: fix rx flow control - #23038

Closed
icing wants to merge 2 commits into
curl:masterfrom
icing:h3-proxy-rx-flow-fix
Closed

icing wants to merge 2 commits into
curl:masterfrom
icing:h3-proxy-rx-flow-fix

Conversation

@icing

@icing icing commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Fix H3-PROXY receive flow control to properly account for the data buffered and update windows on buffer consumption.

reported-by: Joshua Rogers & The Clankers

Fix H3-PROXY receive flow control to properly account for the data
buffered and update windows on buffer consumption.
@github-actions github-actions Bot added the tests label Sep 22, 2026
@icing
icing requested a review from bagder September 22, 2026 11:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One receive path still fails to restore flow-control credit, and the HTTP/2 test lacks its required feature guard.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Fixes HTTP/3 proxy receive flow control by tying QUIC window updates to tunnel-buffer capacity.

Changes:

  • Adds a 512 KiB tunnel receive-window limit.
  • Updates flow-control credit after buffer consumption.
  • Exercises parallel HTTP/2 downloads through an HTTP/3 proxy.
File Description
lib/​vquic/​cf-ngtcp2-proxy.c Revises tunnel receive buffering and window updates.
lib/​vquic/​cf-ngtcp2-cmn.h Removes obsolete window tracking.
lib/​vquic/​cf-ngtcp2-cmn.c Removes initialization of that field.
tests/​http/​test_60_h3_proxy.py Changes the parallel-download test to HTTP/2.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/vquic/cf-ngtcp2-proxy.c
Comment thread tests/http/test_60_h3_proxy.py
@icing
icing requested a review from bagder September 22, 2026 11:59
@bagder bagder closed this in 02f5a59 Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants