MCPcopy
hub / github.com/coredns/coredns / SetExpire

Method SetExpire

plugin/pkg/proxy/proxy.go:53–53  ·  view source on GitHub ↗

SetExpire sets the expire duration in the lower p.transport.

(expire time.Duration)

Source from the content-addressed store, hash-verified

51
52// SetExpire sets the expire duration in the lower p.transport.
53func (p *Proxy) SetExpire(expire time.Duration) { p.transport.SetExpire(expire) }
54
55// SetMaxAge sets the maximum connection lifetime in the lower p.transport.
56// A value of 0 (default) disables max-age.

Callers 4

parseStanzaFunction · 0.45
TestCleanupByTimerFunction · 0.45
TestMaxAgeFIFORotationFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestCleanupByTimerFunction · 0.36
TestMaxAgeFIFORotationFunction · 0.36