Fix cases where net conn write failure was not marking connection as dead
Also added loop to run these timing sensitive tests multiple times.
This commit is contained in:
@@ -483,6 +483,7 @@ func (c *Conn) Prepare(name, sql string) (ps *PreparedStatement, err error) {
|
||||
|
||||
_, err = c.conn.Write(wbuf.buf)
|
||||
if err != nil {
|
||||
c.die(err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -544,6 +545,7 @@ func (c *Conn) Deallocate(name string) (err error) {
|
||||
|
||||
_, err = c.conn.Write(wbuf.buf)
|
||||
if err != nil {
|
||||
c.die(err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user