@grpc/grpc-js
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -138,2 +138,3 @@ "use strict"; | ||
if (newState !== channel_1.ConnectivityState.READY) { | ||
this.currentPick = null; | ||
subchannel.unref(); | ||
@@ -160,4 +161,7 @@ subchannel.removeConnectivityStateListener(this.pickedSubchannelStateListener); | ||
else { | ||
this.connectToAddressList(); | ||
this.channelControlHelper.requestReresolution(); | ||
/* We don't need to backoff here because this only happens if a | ||
* subchannel successfully connects then disconnects, so it will not | ||
* create a loop of attempting to connect to an unreachable backend | ||
*/ | ||
this.updateState(channel_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this)); | ||
} | ||
@@ -279,2 +283,3 @@ } | ||
if (this.currentState === channel_1.ConnectivityState.IDLE) { | ||
this.channelControlHelper.requestReresolution(); | ||
if (this.latestAddressList.length > 0) { | ||
@@ -281,0 +286,0 @@ this.connectToAddressList(); |
{ | ||
"name": "@grpc/grpc-js", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "gRPC Library for Node - pure JS implementation", | ||
@@ -5,0 +5,0 @@ "homepage": "https://grpc.io/", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
303400
7292