comment need for custom client

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Jeromy 2015-07-27 15:19:43 -07:00
parent 23d41e0823
commit 0c4b10afb2

View File

@ -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{