tcnksm / go-httpstat

Tracing golang HTTP request latency
MIT License
423 stars 72 forks source link

Multiple runs #2

Closed kaihendry closed 8 years ago

kaihendry commented 8 years ago

When I loop over your example code:

http://s.natalian.org/2016-10-05/main.go

I get odd results after the first:

http://s.natalian.org/2016-10-05/output.txt

What am I missing? I guess result needs to be re-initialised?

tcnksm commented 8 years ago

Thank you for report.

Umm, it's something wrong. I will look into that.

tcnksm commented 8 years ago

Found it's because of keep-alive. Fixed it https://github.com/tcnksm/go-httpstat/pull/3