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