mirror of https://github.com/grpc/grpc-node.git
grpc-js: Handle keepalive ping error
This commit is contained in:
parent
d1cb2d5f36
commit
83789c15db
|
@ -426,6 +426,10 @@ class Http2Transport implements Transport {
|
|||
try {
|
||||
this.session!.ping(
|
||||
(err: Error | null, duration: number, payload: Buffer) => {
|
||||
if (err) {
|
||||
this.keepaliveTrace('Ping failed with error ' + err.message);
|
||||
this.handleDisconnect();
|
||||
}
|
||||
this.keepaliveTrace('Received ping response');
|
||||
this.clearKeepaliveTimeout();
|
||||
this.maybeStartKeepalivePingTimer();
|
||||
|
|
Loading…
Reference in New Issue