Browse Source

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

Christoph Hack 12 years ago
parent
commit
4045f2cdac
2 changed files with 4 additions and 0 deletions
  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 {