mirror of https://github.com/grpc/grpc-node.git
grpc-js: Add comment about stopKeepalivePings usage
This commit is contained in:
parent
ae93d556ec
commit
553fb7a819
|
@ -384,6 +384,11 @@ export class Subchannel {
|
|||
* sending pings should also involve some network activity. */
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop keepalive pings when terminating a connection. This discards the
|
||||
* outstanding ping timeout, so it should not be called if the same
|
||||
* connection will still be used.
|
||||
*/
|
||||
private stopKeepalivePings() {
|
||||
clearInterval(this.keepaliveIntervalId);
|
||||
clearTimeout(this.keepaliveTimeoutId);
|
||||
|
|
Loading…
Reference in New Issue