Skip to content

Commit 8503311

Browse files
authored
fix(ext/node): read(0) before destroying http2stream (#23505)
This patch enables gRPC hello world client example to work. Towards #23246 #3326
1 parent 5cae343 commit 8503311

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/node/polyfills/http2.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,7 @@ export class ClientHttp2Stream extends Duplex {
10191019
core.tryClose(this[kDenoResponse].bodyRid);
10201020
this.push(null);
10211021
debugHttp2(">>> read null chunk");
1022+
this.read(0);
10221023
this[kMaybeDestroy]();
10231024
return;
10241025
}

0 commit comments

Comments
 (0)