Skip to content

Conversation

rylev
Copy link
Contributor

@rylev rylev commented Jul 4, 2022

Fixes #836

loop {
let error = match next[0].send(ctx, request, &next[1..]).await {
Ok(response) if (200..400).contains(&u16::from(response.status())) => {
Ok(response) if response.status().is_success() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A concern is that it is a change in behavior. What if it .is_redirection in the 300..400 range?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a policy with regards to redirection and it should occur before retry, but it should not be intermingled with retry.

@bmc-msft bmc-msft mentioned this pull request Jul 5, 2022
@bmc-msft bmc-msft merged commit ea663aa into Azure:main Jul 5, 2022
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.

check status code range for execute_request_check_status

3 participants