Re: [go-nuts] go1.8 and json.NewDecoder(resp.Body)

2017-05-23 Thread Ian Davis
On Tue, 23 May 2017, at 01:33 PM, John Shahid wrote: > The only way I can think of to fix this is either using > ioutil.ReadAll(resp.Body) combined with json.Unmarshal, or use > json.NewDecoder() followed by ioutil.ReadAll and discard the result.> What do > you all think ? > I noticed just

[go-nuts] go1.8 and json.NewDecoder(resp.Body)

2017-05-23 Thread John Shahid
Hi all, Some background, we (CloudFoundry) noticed some weird behavior after upgrading from go1.7.4 to go1.8.1. An http client that was polling 260 servers started showing more timeouts after the upgrade. After investigating the issue we realized that the following pattern combined with tls