Skip to content

Disable HTTP/3 when HTTP proxy is used#12699

Merged
Seldaek merged 2 commits intocomposer:mainfrom
Elnadrion:fix-proxy-requests
Dec 30, 2025
Merged

Disable HTTP/3 when HTTP proxy is used#12699
Seldaek merged 2 commits intocomposer:mainfrom
Elnadrion:fix-proxy-requests

Conversation

@Elnadrion
Copy link
Copy Markdown
Contributor

HTTP/3 is not supported over an HTTP proxy. This change adds a check to detect when a proxy will be used for a request and falls back to HTTP/2 instead of attempting to use HTTP/3, preventing connection errors.

image

@Seldaek Seldaek added this to the 2.9 milestone Dec 30, 2025
@Seldaek
Copy link
Copy Markdown
Member

Seldaek commented Dec 30, 2025

HTTP/3 support for proxies seems possible, so ideally we shouldn't have to do this, but I guess it's too early so probably rather keep this off for now..

@Seldaek Seldaek merged commit ffd56dc into composer:main Dec 30, 2025
21 checks passed
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Jan 22, 2026
This PR was merged into the 7.3 branch.

Discussion
----------

[HttpClient] Skip HTTP/3 when using a proxy

| Q             | A
| ------------- | ---
| Branch?       | 7.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

We enabled enabling HTTP/3 in #59370
But I also just learned about composer/composer#12699

I think we should do the same. HTTP/3 + proxies are not yet there, let's play safe.

Commits
-------

44e6ee7 [HttpClient] Skip HTTP/3 when using 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.

2 participants