Skip to content

Commit

Permalink
server: ignore parseAttrs error in handshakeResponse (pingcap#2692)
Browse files Browse the repository at this point in the history
It seems .NET send the wrong packet format.
Connection attribute is not important and can be ignored.
  • Loading branch information
tiancaiamao authored Feb 21, 2017
1 parent 624e7ed commit e6435e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ func handshakeResponseFromData(packet *handshakeResponse41, data []byte) (err er
kv := data[pos : pos+int(num)]
attrs, err := parseAttrs(kv)
if err != nil {
return errors.Trace(err)
log.Warn("parse attrs error:", errors.ErrorStack(err))
return nil
}
packet.Attrs = attrs
pos += int(num)
Expand Down

0 comments on commit e6435e4

Please sign in to comment.