-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: Separate out source and destination remote options #389
Conversation
No need to Clone delegateTransport on every function call, we can reuse the same http.Transport for every call.
3512070
to
66b0a31
Compare
66b0a31
to
445f70c
Compare
This removes the need to configure TLS certificates per request, which was leading to opening too many sockets, and hitting too many open files on systems with reasonable ulimits.
2f36429
to
5fad80b
Compare
@dkoshkin I refactored the TLS configuration and separated out options for src and dest registries. I think is now more understandable and reuses connections better. Could you test it out please? |
Yep testing. |
Looks good, see below snippet without a bunch of open connections.
|
No need to Clone delegateTransport on every function call, we can reuse the same http.Transport for every call.Close idle connections.