Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuation of 065a10a: * Use `http.DefaultTransport` It's because transport provided by `net/http` has some sensible defaults. Before that change we would use "empty" `http.Transport` with "empty" defaults. * Set `MaxIdleConnsPerHost` equal to the `MaxIdleConns` In Snowbridge we basically target single host, so it makes sens to set `MaxIdleConnsPerHost` == `MaxIdleConns`. `MaxIdleConns` provided by the `http.DefaultTransport` is 100. Before that change `MaxIdleConnsPerHost` was 2 (`http.DefaultMaxIdleConnsPerHost`). * Drain and close response body in defer function
- Loading branch information