comment need for custom client
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Jul 27, 2015 at 15:19 UTC
0c4b10afb2a4fa81f6d75517f012401b57cdd21b
1 file changed
+3
commands/http/client.go
+3
@@ -34,6 +34,9 @@ type client struct {
34
}
35
36
func NewClient(address string) Client {
37
+ // We cannot use the default transport because of a bug in go's connection reuse
38
+ // code. It causes random failures in the connection including io.EOF and connection
39
+ // refused on 'client.Do'
40
return &client{
41
serverAddress: address,
42
httpClient: http.Client{