v0.43.1
This commit is contained in:
1 parent
5b6d4a7903
commit
4d1087e357
160 files changed
+2407
-1933
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user