Skip to content

Commit a292e84

Browse files
committed
src code
1 parent f96ce06 commit a292e84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/io/grpc/internal/PickFirstLeafLoadBalancer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,11 @@ private void shutdownRemaining(SubchannelData activeSubchannelData) {
449449
*/
450450
@Override
451451
public void requestConnection() {
452+
// Immediately transition to CONNECTING if we are currently IDLE.
453+
if (rawConnectivityState == IDLE) {
454+
rawConnectivityState = CONNECTING;
455+
updateBalancingState(CONNECTING, new Picker(PickResult.withNoResult()));
456+
}
452457
if (!addressIndex.isValid() || rawConnectivityState == SHUTDOWN) {
453458
return;
454459
}

0 commit comments

Comments
 (0)