davecheney / httpstat

It's like curl -v, with colours.
MIT License
6.95k stars 382 forks source link

Analyzing HTTP timeouts #136

Closed makkes closed 4 years ago

makkes commented 5 years ago

I would like to use httpstat to analyze sporadic HTTP timeouts I'm experiencing in my application when calling a backend HTTP API. The problem is that when httpstat experiences timeouts the output looks like this:

$ httpstat http://localhost:8000/delay/999999

Connected to 127.0.0.1:8000
2018/07/30 08:52:39 failed to read response: Get http://localhost:8000/delay/999999: EOF

What I would like to see as output is the trace including DNS Lookup, TCP Connection, etc. up to the point where the timeout occured. Is that something that could be implemented in httpstat? If yes, I would be willing to help here.

makkes commented 4 years ago

Closing this since it's not been looked at for over a year.