MCPcopy
hub / github.com/fabiolb/fabio / Close

Function Close

proxy/serve.go:51–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func Close() {
52 mu.Lock()
53 for _, srv := range servers {
54 srv.Close()
55 }
56 servers = make(map[string]Server)
57 mu.Unlock()
58}
59
60func Shutdown(timeout time.Duration) {
61 mu.Lock()

Callers 8

TestTCPDyanmicProxyFunction · 0.85
TestTCPProxyFunction · 0.85
TestTCPProxyWithTLSFunction · 0.85
TestTCPSNIProxyFunction · 0.85
TestProxyTCPAndHTTPSFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by 8

TestTCPDyanmicProxyFunction · 0.68
TestTCPProxyFunction · 0.68
TestTCPProxyWithTLSFunction · 0.68
TestTCPSNIProxyFunction · 0.68
TestProxyTCPAndHTTPSFunction · 0.68