removed lines to read conn
This commit is contained in:
committed by
Jack Christensen
parent
53f5fed36c
commit
3bee0c6398
@@ -578,7 +578,6 @@ func (pgConn *PgConn) Close(ctx context.Context) error {
|
|||||||
//
|
//
|
||||||
// See https://github.com/jackc/pgx/issues/637
|
// See https://github.com/jackc/pgx/issues/637
|
||||||
pgConn.conn.Write([]byte{'X', 0, 0, 0, 4})
|
pgConn.conn.Write([]byte{'X', 0, 0, 0, 4})
|
||||||
pgConn.conn.Read(make([]byte, 1))
|
|
||||||
|
|
||||||
return pgConn.conn.Close()
|
return pgConn.conn.Close()
|
||||||
}
|
}
|
||||||
@@ -605,7 +604,6 @@ func (pgConn *PgConn) asyncClose() {
|
|||||||
pgConn.conn.SetDeadline(deadline)
|
pgConn.conn.SetDeadline(deadline)
|
||||||
|
|
||||||
pgConn.conn.Write([]byte{'X', 0, 0, 0, 4})
|
pgConn.conn.Write([]byte{'X', 0, 0, 0, 4})
|
||||||
pgConn.conn.Read(make([]byte, 1))
|
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user