mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
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…
x
Reference in New Issue
Block a user