Skip to content

Commit acf9b45

Browse files
committed
spdy: update godoc for MaxDataLength
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent eb63605 commit acf9b45

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

spdy/types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ const (
4949
)
5050

5151
// MaxDataLength is the maximum number of bytes that can be stored in one frame.
52+
//
53+
// SPDY frame headers encode the payload length using a 24-bit field,
54+
// so the maximum representable size for both data and control frames
55+
// is 2^24-1 bytes.
56+
//
57+
// See the SPDY/3 specification, "Frame Format":
58+
// https://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1/
5259
const MaxDataLength = 1<<24 - 1
5360

5461
const (

0 commit comments

Comments
 (0)