Skip to content

Commit

Permalink
Connection timeout should inherit Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
buger committed Jun 12, 2016
1 parent f4e2b12 commit c4271ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func NewHTTPClient(baseURL string, config *HTTPClientConfig) *HTTPClient {
config.Timeout = 5 * time.Second
}

config.ConnectionTimeout = time.Second
config.ConnectionTimeout = config.Timeout

if config.ResponseBufferSize == 0 {
config.ResponseBufferSize = 100 * 1024 // 100kb
Expand Down

0 comments on commit c4271ff

Please sign in to comment.