mirror of https://github.com/grpc/grpc-node.git
Merge pull request #1328 from murgatroid99/grpc-js_backoff_keep_connecting
grpc-js: Don't time out connection attempts
This commit is contained in:
commit
ea069351c0
|
@ -230,12 +230,12 @@ export class Subchannel {
|
|||
this.backoffTimeout = new BackoffTimeout(() => {
|
||||
if (this.continueConnecting) {
|
||||
this.transitionToState(
|
||||
[ConnectivityState.TRANSIENT_FAILURE, ConnectivityState.CONNECTING],
|
||||
[ConnectivityState.TRANSIENT_FAILURE],
|
||||
ConnectivityState.CONNECTING
|
||||
);
|
||||
} else {
|
||||
this.transitionToState(
|
||||
[ConnectivityState.TRANSIENT_FAILURE, ConnectivityState.CONNECTING],
|
||||
[ConnectivityState.TRANSIENT_FAILURE],
|
||||
ConnectivityState.IDLE
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue