【问题标题】:HTTP/2 flow control in Node.js (grpc-js)Node.js (grpc-js) 中的 HTTP/2 流控制
【发布时间】:2021-05-16 13:01:21
【问题描述】:

HTTP/2 flow control 在 Node.js 版本的 gRPC (grpc-js) 中是如何实现的?

对于Go实现(grpc-go),逻辑主要在https://github.com/grpc/grpc-go/blob/master/internal/transport/(flowcontrol.go, bdp_estimator.go);此外,它被描述为here。但是,我找不到 grpc-js 的任何内容。

我主要对 Node.js 接收器何时发送 WINDOW_UPDATE 帧感兴趣。

【问题讨论】:

    标签: grpc http2 flow-control grpc-node


    【解决方案1】:

    grpc-js 库是使用 Node 的 http2 模块实现的,该模块处理 HTTP/2 协议的细节,包括流量控制。因此,grpc-js 中没有明确执行流控制操作的代码。反过来,http2 模块是使用 nghttp2 库实现的,因此您可能会在代码中找到流控制逻辑。

    【讨论】:

      猜你喜欢
      • 2014-12-01
      • 1970-01-01
      • 2016-04-15
      • 1970-01-01
      • 2016-03-20
      • 2017-04-06
      • 1970-01-01
      • 2014-03-17
      • 2017-12-06
      相关资源
      最近更新 更多