![](/img/trans.png)
[英]Can not run firebase commands in console: Error(`@grpc/grpc-js only works on Node ${supportedNodeVersions}`)
[英]HTTP/2 flow control in Node.js (grpc-js)
在gRPC(grpc-js)的Node.js版本中, HTTP/2流控是如何實現的?
For the Go implementation (grpc-go), the logic is mainly inhttps://github.com/grpc/grpc-go/blob/master/internal/transport/ (flowcontrol.go, bdp_estimator.go); 另外,這里也有描述。 但是,我找不到 grpc-js 的任何內容。
我主要對 Node.js 接收器何時發送 WINDOW_UPDATE 幀感興趣。
grpc-js 庫是使用 Node 的 http2 模塊實現的,該模塊處理 HTTP/2 協議的細節,包括流量控制。 因此,grpc-js 中沒有明確執行流控制操作的代碼。 反過來,http2 模塊是使用 nghttp2 庫實現的,因此您可能會在該代碼中找到流控制邏輯。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.