Skip to content

Commit

Permalink
fix(ext/node): read(0) before destroying http2stream (#23505)
Browse files Browse the repository at this point in the history
This patch enables gRPC hello world client example to work.

Towards #23246 #3326
  • Loading branch information
satyarohith committed Apr 30, 2024
1 parent 5cae343 commit 8503311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/node/polyfills/http2.ts
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8503311

Please sign in to comment.