Merge pull request #2586 from murgatroid99/grpc-js_round_robin_backoff_ref

grpc-js: Unref backoff timer in subchannel
This commit is contained in:
Michael Lumish 2023-09-26 16:49:35 -07:00 committed by GitHub
commit 7e53472048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@grpc/grpc-js",
"version": "1.9.3",
"version": "1.9.4",
"description": "gRPC Library for Node - pure JS implementation",
"homepage": "https://grpc.io/",
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",

View File

@ -120,6 +120,7 @@ export class Subchannel {
this.backoffTimeout = new BackoffTimeout(() => {
this.handleBackoffTimer();
}, backoffOptions);
this.backoffTimeout.unref();
this.subchannelAddressString = subchannelAddressToString(subchannelAddress);
this.keepaliveTime = options['grpc.keepalive_time_ms'] ?? -1;