提交 0c4b10af 作者: Jeromy

comment need for custom client

License: MIT
Signed-off-by: 's avatarJeromy <jeromyj@gmail.com>
上级 23d41e08
......@@ -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{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论