buildkite / buildkite-agent-metrics

A command-line tool (and Lambda) for collecting Buildkite agent metrics
MIT License
67 stars 50 forks source link

This change enables configuration of http connection pooling #286

Closed wolfeidau closed 3 months ago

wolfeidau commented 3 months ago

To provide customers with more options to tune for their situation this introduces a new option to reduce or disable connection reuse. In some cases disabling connection reuse may avoid read timeouts or pausing for connections a server, or CDN may deprioritize.

I have also updated the documentation for the expanded timeout option to highlight it is used for more than just request timeout.

Also disabled redirects, again to ensure the client completes the operation quickly.

See https://github.com/golang/go/blob/master/src/net/http/transport.go#L44-L55 for more context on the defaults.