-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http/httputil: Grpc over Go Proxy brings always connection error (help wanted) #29928
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
Comments
Not commenting on this issue (which may be a real bug), but https://github.com/carl-mastrangelo/h2c/ There are examples on how to use this with reverse proxy. |
CC @bradfitz for (http://golang.org/wiki/Questions has some starting points, or you could try the GRPC venues linked from https://grpc.io/community/.) |
ok, with the help from @carl-mastrangelo I was able to fix the error in my proxy: Here the code maybe someone helps. Thanx for your help.
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?darvin
go env
OutputWhat did you do?
I have a simple setup: no proxy server configured
grpcClient -calls-> go proxy -forward request to-> grpcServer
The grpcServer runs without tls.
The go proxy (code below) allows tls and no tls
I call grpcClient with and without tls.
What did you expect to see?
1.) If I use the proxy for http (Browser) it works.
2.) If I run without proxy, the call to the server returns.
3.) If I run with proxy, the call to the server returns.
What did you see instead?
1.) works
2.) works
3.) Without tls the client brings the following output:
No output on proxy and server.
With tls I get:
Client:
Proxy:
[proxy] 2019/01/25 00:41:55 http: proxy error: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00\x00\x04\x00\x00\x00\x00\x00"
The text was updated successfully, but these errors were encountered: