MCPcopy
hub / github.com/caddyserver/caddy / Close

Method Close

modules/caddyhttp/reverseproxy/retries_test.go:56–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func (c *closeOnCloseReader) Close() error {
57 c.mu.Lock()
58 defer c.mu.Unlock()
59 c.closed = true
60 return nil
61}
62
63// deadUpstreamAddr returns a TCP address that is guaranteed to refuse
64// connections: we bind a listener, note its address, close it immediately,

Callers 2

deadUpstreamAddrFunction · 0.45
brokenUpstreamAddrFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected