Compression handling has some issues
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- node.js, typescript
調査の方向性
まず、issue にリンクされている gRPC 圧縮ドキュメントを読み、クライアントとサーバーにおける grpc-encoding および圧縮メッセージビットの処理を追跡します。サポートされていないエンコーディングまたはエンコーディングがない各ケースを再現し、そのうえで、クライアントの失敗では internal が、サーバーの失敗では unimplemented が報告され、圧縮メッセージの失敗が黙って無視されたり unavailable として表面化したりしないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
According to the gRPC docs for compression, when a client or server sends a “grpc-encoding” header with an unrecognized/unsupported encoding the recipient MUST report that as an error. A client receiving an unsupported encoding from a server should report an internal error code.(See bullet 5 in the test cases section of that doc.) A server receiving an unsupported encoding from a client should report an unimplemented error code. (See bullet 4 in the test cases section of that doc.)
Similarly, when a message is sent where the envelope has the “compressed” bit set, but there is no encoding for the stream (or the encoding is “identity”), the recipient MUST fail with an internal error code.
The client in this package returns an unknown status (with an empty error message) in both of these situations instead of internal.
The server in this package does not necessarily produce any error for either of these:
- When the server receives an unsupported encoding, it does nothing and will succeed if there are no actual messages in the stream with the compressed bit set.
- When the server receives an unsupported encoding and encounters a compressed message, it closes the connection. Clients observe an
unavailableerror due to the loss of network connection. - When a server receives a message with the compressed bit set, but no compression (encoding header is absent or set to “identity”), the server ignores the flag. If the compressed payload can successfully be parsed as a Protobuf, the RPC can succeed (though the message is surely invalid).
- 主要言語
- TypeScript
- スター
- 4.8k
- フォーク
- 717
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
grpc/grpc-node のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
package: @grpc/grpc-js
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
grpc/grpc-node#2993 · コメント 3 件 · リアクション 4 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
grpc/grpc-node#3091 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
feature request
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
grpc/grpc-node#3077 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
grpc/grpc-node#3068 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
似ている issue
-
area/frontend good first issue kind/cooldown
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
voidzero-dev/oxc-angular-compiler#511 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
langchain-ai/deepagentsjs#898 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
anomalyco/models.dev#8509 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation P2 UI/UX
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信