-
Notifications
You must be signed in to change notification settings - Fork 42
Enable h2c support #3
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
base: main
Are you sure you want to change the base?
Conversation
Any updates on this PR? For GCP we needed H2C so I forked this repo and added H2C similar to this PR. Would like to use the gem instead of dragging my repo in and compiling it to run with the Rails app on GCP. |
@kevinmcconnell are there any updates on this PR? |
Are there any updates on this PR? |
Hey @skulos, you'll need to wait for Kevin on this one. Sorry, I cannot help more 🙂 |
@kevinmcconnell any updates on this PR? |
80db6c2
to
6e45f77
Compare
Hi @skulos, sorry for the slow response on this one. And thanks for the nudges :) One possible side effect of this is the fact that the entire request will be read into memory during an h2c upgrade. We have a So I'm thinking we could initially ship this behind an opt-in flag, like |
Any news on this? I would like to use it ASAP |
This adds support for http/2 cleartext (h2c) where prior knowledge is known about the server so an upgrade request (where potential memory consumption issues are not possible). To quote [this issues](golang/go#72039): > Go 1.24's net/http package includes support for HTTP/2 with prior knowledge. It does not include support for the deprecated protocol upgrade mechanism, and we have no plans to add such support. Good news! This change is useful for those who run rails apps behind Cloud Run (or AWS) where some limits may apply to apps (like max file size) unless you run http/2 and enable h2c in the cloud provider settings. Snippet taken from: basecamp#72 Applied feedback from: basecamp#3
This adds support for http/2 cleartext (h2c) where prior knowledge is known about the server so an upgrade request (where potential memory consumption issues are not possible). To quote [this issues](golang/go#72039): > Go 1.24's net/http package includes support for HTTP/2 with prior knowledge. It does not include support for the deprecated protocol upgrade mechanism, and we have no plans to add such support. Good news! This change is useful for those who run rails apps behind Cloud Run (or AWS) where some limits may apply to apps (like max file size) unless you run http/2 and enable h2c in the cloud provider settings. Snippet taken from: basecamp#72 Applied feedback from: basecamp#3
No description provided.