mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
grpc-js: Close http2 sessions that are dropped by their subchannels
This commit is contained in:
parent
35efc06146
commit
e2bb127bb5
@ -321,6 +321,9 @@ export class Subchannel {
|
||||
this.continueConnecting = false;
|
||||
break;
|
||||
case ConnectivityState.TRANSIENT_FAILURE:
|
||||
if (this.session) {
|
||||
this.session.close();
|
||||
}
|
||||
this.session = null;
|
||||
this.stopKeepalivePings();
|
||||
break;
|
||||
@ -329,6 +332,9 @@ export class Subchannel {
|
||||
* should only transition to the IDLE state as a result of the timer
|
||||
* ending, but we still want to reset the backoff timeout. */
|
||||
this.stopBackoff();
|
||||
if (this.session) {
|
||||
this.session.close();
|
||||
}
|
||||
this.session = null;
|
||||
this.stopKeepalivePings();
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user