diff --git a/conn.go b/conn.go index ae97f89..7d7f140 100644 --- a/conn.go +++ b/conn.go @@ -102,7 +102,6 @@ func (e *netError) Timeout() bool { return e.timeout } // CloseError represents close frame. type CloseError struct { - // Code is defined in RFC 6455, section 11.7. Code int @@ -767,7 +766,6 @@ func (c *Conn) SetWriteDeadline(t time.Time) error { // Read methods func (c *Conn) advanceFrame() (int, error) { - // 1. Skip remainder of previous frame. if c.readRemaining > 0 { diff --git a/conn_test.go b/conn_test.go index 0f81795..5fda7b5 100644 --- a/conn_test.go +++ b/conn_test.go @@ -341,7 +341,6 @@ func TestUnderlyingConn(t *testing.T) { } func TestBufioReadBytes(t *testing.T) { - // Test calling bufio.ReadBytes for value longer than read buffer size. m := make([]byte, 512) diff --git a/mask.go b/mask.go index 6a88bbc..577fce9 100644 --- a/mask.go +++ b/mask.go @@ -11,7 +11,6 @@ import "unsafe" const wordSize = int(unsafe.Sizeof(uintptr(0))) func maskBytes(key [4]byte, pos int, b []byte) int { - // Mask one byte at a time for small buffers. if len(b) < 2*wordSize { for i := range b { diff --git a/util.go b/util.go index 60ca26d..385fa01 100644 --- a/util.go +++ b/util.go @@ -180,7 +180,6 @@ headers: // parseExtensiosn parses WebSocket extensions from a header. func parseExtensions(header http.Header) []map[string]string { - // From RFC 6455: // // Sec-WebSocket-Extensions = extension-list