MCPcopy
hub / github.com/jackc/pgx / flushWithPotentialWriteReadDeadlock

Method flushWithPotentialWriteReadDeadlock

pgconn/pgconn.go:2133–2138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2131}
2132
2133func (pgConn *PgConn) flushWithPotentialWriteReadDeadlock() error {
2134 pgConn.enterPotentialWriteReadDeadlock()
2135 defer pgConn.exitPotentialWriteReadDeadlock()
2136 err := pgConn.frontend.Flush()
2137 return err
2138}
2139
2140// SyncConn prepares the underlying net.Conn for direct use. PgConn may internally buffer reads or use goroutines for
2141// background IO. This means that any direct use of the underlying net.Conn may be corrupted if a read is already

Callers 14

gssAuthMethod · 0.95
scramAuthMethod · 0.95
txPasswordMessageMethod · 0.95
CloseMethod · 0.95
asyncCloseMethod · 0.95
PrepareMethod · 0.95
DeallocateMethod · 0.95
ExecMethod · 0.95
execExtendedSuffixMethod · 0.95
CopyToMethod · 0.95
CopyFromMethod · 0.95
oauthAuthMethod · 0.95

Calls 3

FlushMethod · 0.45

Tested by

no test coverage detected