HTTP 2.0 linux:区分流意味着65K缓冲区?

时间:2014-04-12 17:17:52

标签: http unix recv

我正在查看HTTP2 spec,我看到了:

  • 每个连接都有多个流,
  • 每个流都有一个id,
  • 且有效负载的最大大小为65K

这意味着recv缓冲区应至少为65K,以免混淆流,是不是?这不是很重吗?

1 个答案:

答案 0 :(得分:0)

实际上,帧大小是动态的,应该根据拥塞情况改变两端:

A receiver that wishes to use a smaller flow control window than the current size can send a new SETTINGS frame.

https://tools.ietf.org/html/draft-ietf-httpbis-http2-04#section-6.9.2

所以我想我们必须使缓冲区与当前帧大小匹配。