Skip to content

Commit

Permalink
Merge pull request #2586 from murgatroid99/grpc-js_round_robin_backof…
Browse files Browse the repository at this point in the history
…f_ref

grpc-js: Unref backoff timer in subchannel
  • Loading branch information
murgatroid99 committed Sep 26, 2023
2 parents aade055 + ea6ba89 commit 7e53472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/grpc-js/src/subchannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e53472

Please sign in to comment.