From 850331164138233ea86c9a5032d99ad29c79efe1 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Tue, 30 Apr 2024 07:49:29 +0530 Subject: fix(ext/node): read(0) before destroying http2stream (#23505) This patch enables gRPC hello world client example to work. Towards #23246 #3326 --- ext/node/polyfills/http2.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/node/polyfills/http2.ts b/ext/node/polyfills/http2.ts index 02e66e3da..bc8347469 100644 --- a/ext/node/polyfills/http2.ts +++ b/ext/node/polyfills/http2.ts @@ -1019,6 +1019,7 @@ export class ClientHttp2Stream extends Duplex { core.tryClose(this[kDenoResponse].bodyRid); this.push(null); debugHttp2(">>> read null chunk"); + this.read(0); this[kMaybeDestroy](); return; } -- cgit v1.2.3