unnecessary sleep in swiftclient retry on 401
Bug #1386859 reported by
clayg
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Confirmed
|
Low
|
Geronimo Orozco |
Bug Description
When you get a 401 your swiftclient.
I think most of the time a 401 does not require an exponential backoff to request an updated token and retry the request, it's unnecessary and unexpected.
I'd like to see the sleep call bypassed on the 401 retry case.
Changed in swift: | |
assignee: | nobody → Geronimo Orozco (gorozco) |
affects: | swift → python-swiftclient |
Changed in python-swiftclient: | |
status: | New → Confirmed |
importance: | Undecided → Low |
To post a comment you must log in.
Yes I agree, No need to retry when the client is not Unauthorized, it is waste of time.
Can just return after first attempt..