Skip to content

Commit

Permalink
Use custom proxy transport and increase idle connections per host
Browse files Browse the repository at this point in the history
  • Loading branch information
phillebaba committed Oct 14, 2024
1 parent 9237bce commit 2eec3dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ func NewRegistry(ociClient oci.Client, router routing.Router, opts ...Option) *R
for _, opt := range opts {
opt(r)
}
if r.transport == nil {
transport := http.DefaultTransport.(*http.Transport).Clone()
transport.MaxIdleConnsPerHost = 100
r.transport = transport
}
return r
}

Expand Down

0 comments on commit 2eec3dd

Please sign in to comment.