MCPcopy
hub / github.com/coredns/coredns / newTransport

Function newTransport

plugin/pkg/proxy/persistent.go:34–44  ·  view source on GitHub ↗
(proxyName, addr string)

Source from the content-addressed store, hash-verified

32}
33
34func newTransport(proxyName, addr string) *Transport {
35 t := &Transport{
36 avgDialTime: int64(maxDialTimeout / 2),
37 conns: [typeTotalCount][]*persistConn{},
38 expire: defaultExpire,
39 addr: addr,
40 stop: make(chan struct{}),
41 proxyName: proxyName,
42 }
43 return t
44}
45
46// connManager manages the persistent connection cache for UDP and TCP.
47func (t *Transport) connManager() {

Callers 12

NewProxyFunction · 0.85
TestCachedFunction · 0.85
TestCleanupByTimerFunction · 0.85
TestCleanupAllFunction · 0.85
TestMaxIdleConnsFunction · 0.85
TestYieldAfterStopFunction · 0.85
TestMaxAgeFIFORotationFunction · 0.85
BenchmarkYieldFunction · 0.85

Calls

no outgoing calls

Tested by 11

TestCachedFunction · 0.68
TestCleanupByTimerFunction · 0.68
TestCleanupAllFunction · 0.68
TestMaxIdleConnsFunction · 0.68
TestYieldAfterStopFunction · 0.68
TestMaxAgeFIFORotationFunction · 0.68
BenchmarkYieldFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…