MCPcopy
hub / github.com/redis/go-redis / Close

Method Close

internal/pool/main_test.go:132–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130}
131
132func (f *failCloseConn) Close() error {
133 // Close the underlying raw conn so that connCheck sees a closed fd,
134 // matching real-world behavior (e.g., TLS closeNotify failure after
135 // the OS-level socket is torn down).
136 f.dummyConn.rawConn.Close()
137 return f.closeErr
138}
139
140func (f *failCloseConn) SyscallConn() (syscall.RawConn, error) {
141 return f.dummyConn.SyscallConn()

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected