myhttp icon indicating copy to clipboard operation
myhttp copied to clipboard

Use http.Client{Timeout: timeout}

Open pyke369 opened this issue 8 years ago • 1 comments

Hello,

I thing the whole code around Transport timeouts may be replaced by a simple http.Client{Timeout: timeout} statement.

Pierre-Yves

pyke369 avatar Oct 13 '17 08:10 pyke369

Hi, thx, With your recommendation, tests pass, however, I don't remember why I did it that way but when I was just giving it a timeout wasn't working on the production. Maybe, I should add a test to validate that production-level behavior.

inancgumus avatar Oct 13 '17 10:10 inancgumus