Merge pull request #1328 from murgatroid99/grpc-js_backoff_keep_connecting

grpc-js: Don't time out connection attempts
This commit is contained in:
Michael Lumish 2020-04-01 10:06:19 -07:00 committed by GitHub
commit ea069351c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
); );
} }