Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Aug 15, 2019

Motivation:

The gRPC backoff continues ad infinitum (it is capped at a maximum
timeout instead of growing exponentially forever). Our backoff
terminates once it reaches the maximum backoff.

Modifications:

  • Remove the upper limit on backoff generation so it is produced infinitely.
  • Remove a test which is no longer relevant.
  • Enable backoff by default

Result:

Client will try connecting until the user calls close()

Motivation:

The gRPC backoff continues ad infinitum (it is capped at a maximum
timeout instead of growing exponentially forever). Our backoff
terminates once it reaches the maximum backoff.

Modifications:

- Remove the upper limit on backoff generation so it is produced infinitely.
- Remove a test which is no longer relevant.
- Enable backoff by default

Result:

Client will try connecting until the user calls `close()`
@MrMage
Copy link
Collaborator

MrMage commented Aug 16, 2019

Should we at least keep the option for users to stop retrying after the last backoff try? (Open to removing this now and re-adding this later only if it actually gets requested.)

@glbrntt
Copy link
Collaborator Author

glbrntt commented Aug 19, 2019

Should we at least keep the option for users to stop retrying after the last backoff try? (Open to removing this now and re-adding this later only if it actually gets requested.)

I'd say remove and re-add if it gets requested.

@MrMage MrMage merged commit e3833a5 into grpc:nio Aug 19, 2019
@glbrntt glbrntt deleted the backoff branch August 19, 2019 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants