-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection state management #3251
Conversation
|
||
// The retryAttemptsExhausted flag differentiates between calling this method while still retrying | ||
// vs calling this when no more retry attempts are being made. | ||
private void HandleConnectionStatusExceptions(Exception exception, bool retryAttemptsExhausted = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"retryAttemptsExhausted" is never being passed as false right now. Should it?
} | ||
} | ||
|
||
public override async Task<DateTime> RefreshSasTokenAsync(CancellationToken cancellationToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this chained properly and does it get cancelled if CloseAsync() is called?
_onConnectionStatusChanged = context.ConnectionStatusChangeHandler; | ||
|
||
// This retry policy is saved only to handle the client state when the retry policy informs that no more retry attempts are to be made | ||
_retryPolicy = context.RetryPolicy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo - check exp backoff retry policy. Possible that we increase the wait time way quicker than "required"
7b5c120
to
b2ddc19
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me so far!
No description provided.