Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: use cleanhttp.DefaultPooledTransport for default API client #12492

Merged
merged 1 commit into from
Apr 6, 2022

Commits on Apr 6, 2022

  1. api: use cleanhttp.DefaultPooledTransport for default API client

    We expect every Nomad API client to use a single connection to any
    given agent, so take advantage of keep-alive by switching the default
    transport to `DefaultPooledClient`. Provide a facility to close idle
    connections for testing purposes.
    
    Restores the previously reverted #12409
    
    Co-authored-by: Ben Buzbee <bbuzbee@cloudflare.com>
    tgross and Ben Buzbee committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    cf039e7 View commit details
    Browse the repository at this point in the history