From 3c4b551a7c60ce33fef055cbaccc09bbb4743724 Mon Sep 17 00:00:00 2001 From: spacexnice Date: Tue, 13 Sep 2016 09:58:12 +0800 Subject: [PATCH] remoteURL parameter error cause challenge cache not working,critical area consume to much time, which eventually lead to client manifest request timeout(90s) in massive(which i test 80 concurrent) concurrent manifest request situation. Signed-off-by: spacexnice --- registry/proxy/proxyregistry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/proxy/proxyregistry.go b/registry/proxy/proxyregistry.go index 56818dabc..c63bc619f 100644 --- a/registry/proxy/proxyregistry.go +++ b/registry/proxy/proxyregistry.go @@ -203,7 +203,7 @@ func (r *remoteAuthChallenger) tryEstablishChallenges(ctx context.Context) error remoteURL := r.remoteURL remoteURL.Path = "/v2/" - challenges, err := r.cm.GetChallenges(r.remoteURL) + challenges, err := r.cm.GetChallenges(remoteURL) if err != nil { return err }