My timeout is configurable, but I usually set it to 5 or 10 seconds. Plenty
of time for a TLS handshake.
Based on the code you gave me, increasing the timeout to 5 seconds, and
changing the target endpoint to match the behavior I'm seeing, this is the
output.
Get Conn: <>:<>
Conn start: tcp
Hello gophers,
We have just released Go versions 1.15.3 and 1.14.10, minor point releases.
View the release notes for more information:
https://golang.org/doc/devel/release.html#go1.15.minor
You can download binary and source distributions from the Go web site:
https://golang.org/dl/
It depends on how far down the connection process it reached before timing
out...
What is the timeout setting your http client?
Try this example:
func main() {
req, _ := http.NewRequest("GET",
"https://deelay.me/300/https://google.com;, nil)
trace := {
GetConn: func(hostPort string) {
Hi Max,
Great answer, thank you! Exactly what I was looking for in terms of a fluid
api, no need for parsing the selectors.
The API is not quite suitable for public consumption. I feel this could be
a great success if extracted into its own module.
Could you kindly clarify what the meaning of
I can only agree, traversing or navigating Go AST is cumbersome for at
least two reasons:
1. each type has its own fields - no uniform API is available
2. you often need type assertions on fields because they have interface
type instead of concrete type
I developed a wrapper around them to