or example due to a TLS handshake delay etc.
>
>
> >>> I'm not seeing anything in the httptrace library for for a
> "FailedConnInfo" equivalent to "GotConnInfo." Am I overlooking something?
>
> the GotConn documentation says that for er
Conn: %s\n",
> connInfo.Conn.LocalAddr().String()) <- This has the
> local outgoing port
> },
>}
> req = req.WithContext(httptrace.WithClientTrace(req.Context(), trace))
> if _, err := http.DefaultTransport.RoundTrip(req); err !
is has the
> local outgoing port
> },
>}
> req = req.WithContext(httptrace.WithClientTrace(req.Context(), trace))
> if _, err := http.DefaultTransport.RoundTrip(req); err != nil {
> log.Fatal(err)
> }
>
>
> On Wednesday, October 7, 2020 at
Is it possible to capture the outgoing port for a given HTTP request?
I'm using a knockoff of ab that I wrote in go to send repeated requests to
a given web service. Sometimes we get an error and I want to look at a
packet trace of it. The problem is it's really hard to find one failed
request