summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-04-30 07:49:29 +0530
committerGitHub <noreply@github.com>2024-04-30 07:49:29 +0530
commit850331164138233ea86c9a5032d99ad29c79efe1 (patch)
tree4ead67c7549b4403e1c042dddd3107ba5a381442
parent5cae3439912ad60eb2866f3d4372a5fe4d0de957 (diff)
fix(ext/node): read(0) before destroying http2stream (#23505)
This patch enables gRPC hello world client example to work. Towards #23246 #3326
-rw-r--r--ext/node/polyfills/http2.ts1
1 files changed, 1 insertions, 0 deletions
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;
}