This commit is contained in:
Mateusz Gruszczyński committed 2026-11-28 17:36:53 +01:00
1 parent 5b6d4a7903
commit 4d1087e357
160 files changed
+2407 -1933

No files matched your search

+1 -4
View File
@@ -16,10 +16,7 @@ import (
type unixRoundTripper struct{ sock string }
// Each Docker socket gets one shared transport. Creating one per RoundTrip
// leaks idle connections and their goroutines when keep-alive is enabled.
// The configured socket is stable during the lifetime of the agent.
var unixTransports sync.Map // map[string]*http.Transport
var unixTransports sync.Map
func unixTransport(sock string) *http.Transport {
if existing, ok := unixTransports.Load(sock); ok {