Skip to content

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Nov 2, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #62264
License MIT

HTTP/2 PUSH is a deprecated feature of the protocol. Browsers moved away from it in favor of 103 early hints. Server-side support is quite low in various languages, and use cases are even lower. The vulcain protocol by @dunglas is designed to leverage it, and that's the only use case I'm aware of on the server-side. Yet even in vulcain it's optional.

IMHO, we don't need any deprecation layer. We can just drop supporting it. This won't change anything in practice.

Submitting for 7.4 so that we won't maintain this any longer.

@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Nov 2, 2025

FTR I had a closer look at #60219 and #60220 and those are really difficult to deal with. I'd rather close them as won't fix.
Handling PUSH works fine with AMPHP, but with curl, it's a nightmare.
The minimum IMHO - for my own mental sanity - is to drop support in the curl client.
(previous comments superseded by #62285)

@nicolas-grekas nicolas-grekas changed the title [HttpClient] Remove support for HTTP/2 [HttpClient] Remove support for HTTP/2 PUSH Nov 2, 2025
@nicolas-grekas
Copy link
Member Author

OK, I figured out how to fix #60219 and #60220 in #62285

Let me close, we can keep PUSH for the time beeing - it works now, without walls to climb as maintainers.

nicolas-grekas added a commit that referenced this pull request Nov 3, 2025
This PR was merged into the 6.4 branch.

Discussion
----------

[HttpClient] Reject 3xx pushed responses

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #62279 and #62276
| License       | MIT

I figured out we could reject 3xx pushed responses to fix the linked issues.

This makes #62279 unnecessary.

Commits
-------

ccdf3cb [HttpClient] Reject 3xx pushed responses
@nicolas-grekas nicolas-grekas deleted the hc-drop-push branch November 3, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFC] Deprecate support for HTTP/2 PUSH

3 participants