mirror of https://github.com/grpc/grpc-node.git
grpc-js: Unregister socket from channelz when closing transport
This commit is contained in:
parent
9264d582c9
commit
056dc8e56e
|
@ -20,7 +20,7 @@ import { checkServerIdentity, CipherNameAndProtocol, ConnectionOptions, PeerCert
|
||||||
import { StatusObject } from './call-interface';
|
import { StatusObject } from './call-interface';
|
||||||
import { ChannelCredentials } from './channel-credentials';
|
import { ChannelCredentials } from './channel-credentials';
|
||||||
import { ChannelOptions } from './channel-options';
|
import { ChannelOptions } from './channel-options';
|
||||||
import { ChannelzCallTracker, registerChannelzSocket, SocketInfo, SocketRef, TlsInfo } from './channelz';
|
import { ChannelzCallTracker, registerChannelzSocket, SocketInfo, SocketRef, TlsInfo, unregisterChannelzRef } from './channelz';
|
||||||
import { LogVerbosity } from './constants';
|
import { LogVerbosity } from './constants';
|
||||||
import { getProxiedConnection, ProxyConnectionResult } from './http_proxy';
|
import { getProxiedConnection, ProxyConnectionResult } from './http_proxy';
|
||||||
import * as logging from './logging';
|
import * as logging from './logging';
|
||||||
|
@ -471,6 +471,7 @@ class Http2Transport implements Transport {
|
||||||
|
|
||||||
shutdown() {
|
shutdown() {
|
||||||
this.session.close();
|
this.session.close();
|
||||||
|
unregisterChannelzRef(this.channelzRef);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue