2
0

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:
Jack Christensen
2015-09-12 19:32:55 -05:00
parent bc4742b80a
commit 6e5fa60c4c
3 changed files with 83 additions and 71 deletions
+2
View File
@@ -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
}