[go-nuts] Re: Capture Outgoing Port for a HTTP Request

2020-10-14 Thread ryan...@gmail.com
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

[go-nuts] Re: Capture Outgoing Port for a HTTP Request

2020-10-13 Thread ryan...@gmail.com
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 !

[go-nuts] Re: Capture Outgoing Port for a HTTP Request

2020-10-08 Thread ryan...@gmail.com
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

[go-nuts] Capture Outgoing Port for a HTTP Request

2020-10-07 Thread ryan...@gmail.com
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