Skip to content

fix(http3): reject requests that require a proxy - #3141

Open
shuvroroy wants to merge 1 commit into
seanmonstar:masterfrom
shuvroroy:fix/http3-proxy-bypass
Open

shuvroroy wants to merge 1 commit into
seanmonstar:masterfrom
shuvroroy:fix/http3-proxy-bypass

Conversation

@shuvroroy

Copy link
Copy Markdown

HTTP/3 requests currently connect directly even when a configured proxy matches the destination. Pass the client's proxy matchers to the HTTP/3 transport and return an explicit request error before DNS resolution or connection-pool lookup when a proxy is required.

Check each request, including redirects and requests using pooled connections. Proxy exclusions and nonmatching proxy rules continue to allow direct HTTP/3 requests.

Five regression tests cover HTTP/HTTPS/SOCKS proxy matching, absence of target DNS lookups and UDP packets, exclusions, redirects, and changes to custom proxy decisions after a connection is pooled. The matching-proxy regression returns HTTP 200 before the fix and the expected error afterward.

Fixes #2833.

Validation:

  • HTTP/3, proxy, client, blocking, redirect, and library tests with http3,stream,socks,cookies,blocking: 139 passed, 3 ignored.
  • HTTP/3 tests with default features disabled and http3,stream: 14 passed.
  • Library builds with default features enabled and disabled pass.
  • Formatting checks, including the changed source files inside macros, and git diff --check pass.

Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Reqwest-PR: seanmonstar/reqwest#3141

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy
Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Reqwest-PR: seanmonstar/reqwest#3141

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy
Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Reqwest-PR: seanmonstar/reqwest#3141

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy
Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 16, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Reqwest-PR: seanmonstar/reqwest#3141

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy
Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 18, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Reqwest-PR: seanmonstar/reqwest#3141

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy
Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 20, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Reqwest-PR: seanmonstar/reqwest#3141

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy
Byron pushed a commit to GitoxideLabs/gitoxide that referenced this pull request Nov 24, 2026
Port the source worktree commit into `gix-reqwest`, retaining its author.
Retarget Rust crate paths and preserve upstream formatting.

Port validation: library, proxy, redirect, blocking, and client tests pass
with the stable optional features enabled; external TLS-info tests are
excluded.

Reqwest-Patch: 64828c92df7cc9991c0e9462278ce4a20c1bff45
Reqwest-PR: seanmonstar/reqwest#3141

Original source message:

fix(http3): reject requests that require a proxy

<!-- agent -->
Transplanted from seanmonstar/reqwest#3141.
Original commit: a91422aa960e0db0a1f3fd3864c01bad895fff74.
Included in the reqwest patch stack for Gitoxide transport correctness, security, or transfer efficiency.
The source patch is preserved; local changes are kept in separate commits.

<!-- original message -->
fix(http3): reject requests that require a proxy
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.

Proxy ignored with HTTP3

1 participant