mirror of https://github.com/grpc/grpc-node.git
Only reconnect to same address list if idle
This commit is contained in:
parent
4250ac6685
commit
2c4798e3d6
|
@ -356,12 +356,14 @@ export class PickFirstLoadBalancer implements LoadBalancer {
|
|||
for (const subchannel of this.subchannels) {
|
||||
subchannel.startConnecting();
|
||||
}
|
||||
if (this.currentState === ConnectivityState.IDLE || this.triedAllSubchannels) {
|
||||
this.channelControlHelper.requestReresolution();
|
||||
if (this.currentState === ConnectivityState.IDLE) {
|
||||
if (this.latestAddressList.length > 0) {
|
||||
this.connectToAddressList();
|
||||
}
|
||||
}
|
||||
if (this.currentState === ConnectivityState.IDLE || this.triedAllSubchannels) {
|
||||
this.channelControlHelper.requestReresolution();
|
||||
}
|
||||
}
|
||||
|
||||
resetBackoff() {
|
||||
|
|
Loading…
Reference in New Issue