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

Function maybeHasData

internal/pool/conn_check.go:57–59  ·  view source on GitHub ↗

maybeHasData checks if there is data in the socket without consuming it

(conn net.Conn)

Source from the content-addressed store, hash-verified

55
56// maybeHasData checks if there is data in the socket without consuming it
57func maybeHasData(conn net.Conn) bool {
58 return connCheck(conn) == errUnexpectedRead
59}

Callers 1

MaybeHasDataMethod · 0.70

Calls 1

connCheckFunction · 0.70

Tested by

no test coverage detected