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) {
|
for (const subchannel of this.subchannels) {
|
||||||
subchannel.startConnecting();
|
subchannel.startConnecting();
|
||||||
}
|
}
|
||||||
if (this.currentState === ConnectivityState.IDLE || this.triedAllSubchannels) {
|
if (this.currentState === ConnectivityState.IDLE) {
|
||||||
this.channelControlHelper.requestReresolution();
|
|
||||||
if (this.latestAddressList.length > 0) {
|
if (this.latestAddressList.length > 0) {
|
||||||
this.connectToAddressList();
|
this.connectToAddressList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.currentState === ConnectivityState.IDLE || this.triedAllSubchannels) {
|
||||||
|
this.channelControlHelper.requestReresolution();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resetBackoff() {
|
resetBackoff() {
|
||||||
|
|
Loading…
Reference in New Issue