diff options
author | Peter Harris <pharris@opentext.com> | 2011-03-02 18:14:43 -0500 |
---|---|---|
committer | Peter Harris <pharris@opentext.com> | 2011-03-02 18:14:43 -0500 |
commit | 171f153c2a53ebd344a9ed9613742c2ccdefd10b (patch) | |
tree | c5cb8dd7791483661729cb648f667253e1d82952 | |
parent | fd93ba09f760a785337bbed4cc0a79348dc6f451 (diff) |
Fix reading of errors from the server
All replies/events/errors would be broken after the first error, due to
a short read.
-rw-r--r-- | xgob.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -487,7 +487,7 @@ func (c *Connection) read(in *bufio.Reader) { e.BadValue = readUint32(in) e.Minor = readUint16(in) e.Major, _ = in.ReadByte() - skipBytes(in, 20) + skipBytes(in, 21) c.postReply(e.Sequence, e) case 1: var r Reply |