I must be doing something stupid, but I can not get http2 to work on my server after upgrading go to 1.6. I am doing some custom things with my TLS connections so I tried to mess with that a bit, until…
go get golang.org/x/net/http2/h2i
Connecting to google.com:443 …
Connected to 220.127.116.11:443
Negotiated protocol "h2"
The handle is invalid.
The same errors for connection to http2.golang.org and my own test server.
go version go1.6 windows/amd64
When testing a TLS site without http2 support the message is as expected:
Connecting to origin.www.ieee.org:443 …
Connected to 18.104.22.168:443
Negotiated protocol ""
Could not negotiate protocol mutually