-
Notifications
You must be signed in to change notification settings - Fork 18k
x/net/http2: error dialing IPv6 literal hostnames without ports #18248
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
I have a hunch this is from https://golang.org/src/net/http/h2_bundle.go#L5143 https://play.golang.org/p/I4HIN5LMC4
When running my code with following arguments:-
It works as expected. |
Thanks. Looks like authorityAddr does have a problem. Sending a fix now. There are a few unrelated suspicious things in your https://gist.github.com/sajal/1e052792023b0a8ff04eba77deeab487 code, but we can address those separately. |
CL https://golang.org/cl/34143 mentions this issue. |
Thanks @bradfitz . Would appreciate feedback in the gist :) |
CL https://golang.org/cl/34495 mentions this issue. |
Updates bundled x/net/http2 to git rev 1195a05d for: http2: fix incorrect panic https://golang.org/cl/34498 http2: fix race in writePushPromise https://golang.org/cl/34493 http2: speed up TestTransportFlowControl in short mode https://golang.org/cl/33241 http2: don't flush a stream's write queue in sc.resetStream https://golang.org/cl/34238 http2: allow Transport to connect to https://[v6literal]/ without port https://golang.org/cl/34143 http2: log Framer reads and writes when a server test fails https://golang.org/cl/34130 Updates #18326 Updates #18273 Updates #18111 Updates #18248 Updates #18235 Change-Id: I18c7a297fc94d6a843284efcfc43e0fdab9b5f41 Reviewed-on: https://go-review.googlesource.com/34495 Run-TryBot: Chris Broadfoot <cbro@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Fixes golang/go#18248 Change-Id: I271fbcc68a86f20c57b258c2e25788908dafdd94 Reviewed-on: https://go-review.googlesource.com/34143 Reviewed-by: Tom Bergan <tombergan@google.com> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
What version of Go are you using (
go version
)?Same behavior on 1.7
What operating system and processor architecture are you using (
go env
)?What did you do?
We are doing something custom with the http package, this issue might not be relevant for common use cases...
Our issue: turbobytes/pulse#5
Example reproduce code: https://gist.github.com/sajal/1e052792023b0a8ff04eba77deeab487
First one fails(h2 enabled website), second one works(non-h2 site).
We are using http package along with the awesome httptrace to run some custom tests, to get timing information.
Our terminology :-
host
: This is value of theHost
request header as well as theServerName
for TLS handshake when accessing over httpsendpoint
: This is the server we connect to, can be a hostname, IPv4 or IPv6path
: The path being accessed.The above issue only happens if :-
What did you expect to see?
A successful http response. Or at least some err. At worst timeouts being honored.
What did you see instead?
Infinite loop of following messages, and client not respecting timeouts configured.
And goes on like this for what seems like forever...
PS: I think the custom
Resolver
in tip might help me do what I'm doing in a more elegant manner. I have yet to try it out.The text was updated successfully, but these errors were encountered: