浏览代码

decode SUPPORTED frames correctly, that are send in response to options messages and periodical pings

Christoph Hack 12 年之前
父节点
当前提交
4045f2cdac
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      conn.go
  2. 2 0
      frame.go

+ 2 - 0
conn.go

@@ -454,6 +454,8 @@ func (c *Conn) decodeFrame(f frame, trace Tracer) (rval interface{}, err error)
 		default:
 			return nil, ErrProtocol
 		}
+	case opSupported:
+		return supportedFrame{}, nil
 	case opError:
 		code := f.readInt()
 		msg := f.readString()

+ 2 - 0
frame.go

@@ -286,6 +286,8 @@ var consistencyCodes = []uint16{
 
 type readyFrame struct{}
 
+type supportedFrame struct{}
+
 type resultVoidFrame struct{}
 
 type resultRowsFrame struct {