We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb63605 commit acf9b45Copy full SHA for acf9b45
1 file changed
spdy/types.go
@@ -49,6 +49,13 @@ const (
49
)
50
51
// 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/
59
const MaxDataLength = 1<<24 - 1
60
61
const (
0 commit comments