Open rajat25 opened 2 years ago
httpclient.Do forces closes connection whereas hystrix.Do doesn't. I am using httpclient.Do in my project, due to which my connection is forced closed after every request.
func (c *Client) Do(request *http.Request) (*http.Response, error) { request.Close = true var bodyReader *bytes.Reader
request.Close = true above closes the connection.
request.Close = true
Edit: I see that a PR https://github.com/gojek/heimdall/pull/122 is raised to fix this but it is not yet merged. Can this be merged please?
httpclient.Do forces closes connection whereas hystrix.Do doesn't. I am using httpclient.Do in my project, due to which my connection is forced closed after every request.
request.Close = true
above closes the connection.Edit: I see that a PR https://github.com/gojek/heimdall/pull/122 is raised to fix this but it is not yet merged. Can this be merged please?