Update HTTPFallback to handle tls handshake timeout

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2024-04-14 18:46:39 -07:00
parent 7c50784591
commit 5e470e1cae
5 changed files with 107 additions and 25 deletions

View File

@@ -110,7 +110,7 @@ func TestPusherHTTPFallback(t *testing.T) {
if client.Transport == nil {
client.Transport = http.DefaultTransport
}
client.Transport = HTTPFallback{client.Transport}
client.Transport = NewHTTPFallback(client.Transport)
p.hosts[0].Client = client
phost := p.hosts[0].Host
p.hosts[0].Authorizer = NewDockerAuthorizer(WithAuthCreds(func(host string) (string, string, error) {