fix(rpc): accept exact-boundary v2 chunks

This commit is contained in:
Wolfgang Schoenberger
2026-07-22 19:13:53 -07:00
parent a0cb946057
commit 00a9167223
4 changed files with 58 additions and 2 deletions
@@ -147,7 +147,7 @@ export class RpcFrameDecoder {
count < 2 ||
count > Math.ceil(MAX_RPC_REASSEMBLED_BYTES / RPC_CHUNK_PAYLOAD_BYTES) ||
index >= count ||
byteLength <= MAX_RPC_FRAME_BYTES ||
byteLength < MAX_RPC_FRAME_BYTES ||
byteLength > MAX_RPC_REASSEMBLED_BYTES
)
throw new Error("invalid rpc chunk metadata");