Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_proxy_http2 slower? #296

Open
gfrankliu opened this issue Feb 28, 2025 · 1 comment
Open

mod_proxy_http2 slower? #296

gfrankliu opened this issue Feb 28, 2025 · 1 comment

Comments

@gfrankliu
Copy link

Simply changing the Apache proxy configuration from "http://backend" to "h2c://backend", client/browser sees response time jump from 2s to 10s for getting a file about 1.1MB. Rest Apache configuration remains the same. Anything I could do to tune the performance of mod_proxy_http2? I am already using mod-h2 v2.0.29.

I also confirmed it is not a backend issue. curl --http2-prior-knowledge http://backend/largefile.js and curl --http1.1 http://backend/largefile.js have about the same response time.

@icing
Copy link
Owner

icing commented Mar 1, 2025

There are no "hidden" tuning options for mod_proxy_http2. As you probably noticed, there is only ever one request on the backend connection at a time. That is due to the internal architecture of the server. But it is difficult in general to do that right. Many CDNs are not really supporting this either.

In general, I would recommend to stay with http/1.1 on the backend.

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

No branches or pull requests

2 participants