mirror of https://github.com/grpc/grpc-node.git
grpc-js: Destroy http2 stream when a call ends in any way
This commit is contained in:
parent
6994f1b1df
commit
630897244e
|
@ -163,6 +163,9 @@ export class Http2CallStream extends Duplex implements Call {
|
||||||
* @param status The status of the call.
|
* @param status The status of the call.
|
||||||
*/
|
*/
|
||||||
private endCall(status: StatusObject): void {
|
private endCall(status: StatusObject): void {
|
||||||
|
/* Once endCall is called, we are definitely not using the http2 stream
|
||||||
|
* anymore, so we can always safely destroy it here */
|
||||||
|
this.destroyHttp2Stream();
|
||||||
if (this.finalStatus === null) {
|
if (this.finalStatus === null) {
|
||||||
this.trace(
|
this.trace(
|
||||||
'ended with status: code=' +
|
'ended with status: code=' +
|
||||||
|
|
Loading…
Reference in New Issue