Skip to content
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

Merged
merged 30 commits into from
Apr 13, 2023
Merged

Conversation

abhipsaMisra
Copy link
Member

No description provided.


// 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)
Copy link
Member Author

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)
Copy link
Member Author

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;
Copy link
Member Author

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"

@abhipsaMisra abhipsaMisra force-pushed the abmisr/connectionStatusHandler branch from 7b5c120 to b2ddc19 Compare April 10, 2023 22:39
@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@patilsnr patilsnr left a 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!

@abhipsaMisra abhipsaMisra merged commit 9486a6a into previews/v2 Apr 13, 2023
@abhipsaMisra abhipsaMisra deleted the abmisr/connectionStatusHandler branch April 13, 2023 21:13
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.

5 participants