-
Notifications
You must be signed in to change notification settings - Fork 22
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
Can it support reverse proxy such as nginx? #7
Comments
In the mean time, doing a normal GET over HTTP2 client works fine |
Does it work for you if you directly connect to the server, and not through nginx? |
It works well without nginx, it's an issue with nginx support I think |
My code: // use h2conn for duplex tunnel
ctx, cancel = context.WithCancel(context.Background())
h2 := h2conn.Client{Client: HTTPClient}
conn, resp, err = h2.Connect(ctx, url)
if err != nil {
log.Printf("Initiate conn: %s", err)
return
} |
Additional info: nginx returns code 408:
|
Did you configure nginx to support http2? |
Yes, http2 is enabled, and normal requests via HTTP2 work fine |
Sorry, it will be very hard for me to debug this. |
@jm33-m0 Have you found out the solution? If not, can you post your nginx configuration and output of curl -I -L https://your_domain? |
I encapsulated the HTTP2 connection in a proxy, didn't try to solve the nginx (or any kind of reverse proxy) support. |
When I put the server behind nginx, and try to connect with
h2.Connect()
, it throws an error:The text was updated successfully, but these errors were encountered: