mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #4561] [CLOSED] config: add VhostEnableH2C flag to support HTTP/2 cleartext upgrade #4998
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4998
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/4561
Author: @sword-jin
Created: 11/28/2024
Status: ❌ Closed
Base:
dev← Head:vhost_support_h2c📝 Commits (1)
0a70a6aconfig: add VhostEnableH2C flag to support HTTP/2 cleartext upgrade📊 Changes
7 files changed (+60 additions, -25 deletions)
View changed files
📝
pkg/config/flags.go(+1 -0)📝
pkg/config/legacy/conversion.go(+1 -0)📝
pkg/config/legacy/server.go(+5 -0)📝
pkg/config/v1/server.go(+5 -0)📝
pkg/util/vhost/http.go(+45 -25)📝
server/dashboard_api.go(+2 -0)📝
server/service.go(+1 -0)📄 Description
WHY
Support
h2cin virtual host.Our use case is:
In front of the vhost, we deploy a caddy to reverse the traffic to frps. And use caddy do tls termination, we got a bug, the client always get an error
internal: protocol error: no Grpc-Status trailer: unexpected EOFwhen requesting a GRPC streaming API(works well on unary API).After some investigation and debug, I found we can fix it by support h2c on the vhost layer.
refrence:
close #4563
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.