Skip to content

Commit

Permalink
Add timed out to backoff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Jun 3, 2024
1 parent 76d16e0 commit d035957
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testsuite/httpx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def should_backoff(self):
self.has_dns_error()
or (self.error is None and self.status_code in self.retry_codes)
or self.has_error("Server disconnected without sending a response.")
or self.has_error("timed out")
)

def has_error(self, error_msg: str) -> bool:
Expand Down

0 comments on commit d035957

Please sign in to comment.