소스 검색

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 {