Unecessary sleep when a connection needs to reauthenticate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
New
|
Undecided
|
Unassigned |
Bug Description
client.Client will sleep for the backoff delay when it detects the need to reauthenticate:
def _retry(self, reset_func, func, *args, **kwargs):
backoff = self.starting_
while self.attempts <= self.retries or retried_auth:
…
try:
…
except ClientException as err:
if err.http_status == 401:
…
This is, obviously, unnecessary.