Skip to content

Commit 7e53472

Browse files
authored
Merge pull request #2586 from murgatroid99/grpc-js_round_robin_backoff_ref
grpc-js: Unref backoff timer in subchannel
2 parents aade055 + ea6ba89 commit 7e53472

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/grpc-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grpc/grpc-js",
3-
"version": "1.9.3",
3+
"version": "1.9.4",
44
"description": "gRPC Library for Node - pure JS implementation",
55
"homepage": "https://grpc.io/",
66
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",

packages/grpc-js/src/subchannel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export class Subchannel {
120120
this.backoffTimeout = new BackoffTimeout(() => {
121121
this.handleBackoffTimer();
122122
}, backoffOptions);
123+
this.backoffTimeout.unref();
123124
this.subchannelAddressString = subchannelAddressToString(subchannelAddress);
124125

125126
this.keepaliveTime = options['grpc.keepalive_time_ms'] ?? -1;

0 commit comments

Comments
 (0)