1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(ext/node): read(0) before destroying http2stream (#23505)

This patch enables gRPC hello world client example to work.

Towards #23246 #3326
This commit is contained in:
Satya Rohith 2024-04-30 07:49:29 +05:30 committed by GitHub
parent 5cae343991
commit 8503311641
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}