From 0c4b10afb2a4fa81f6d75517f012401b57cdd21b Mon Sep 17 00:00:00 2001 From: Jeromy Date: Mon, 27 Jul 2015 15:19:43 -0700 Subject: [PATCH] comment need for custom client License: MIT Signed-off-by: Jeromy --- commands/http/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/http/client.go b/commands/http/client.go index e787e90fa..b36299153 100644 --- a/commands/http/client.go +++ b/commands/http/client.go @@ -34,6 +34,9 @@ type client struct { } func NewClient(address string) Client { + // We cannot use the default transport because of a bug in go's connection reuse + // code. It causes random failures in the connection including io.EOF and connection + // refused on 'client.Do' return &client{ serverAddress: address, httpClient: http.Client{