Retry on 524 status code

This commit is contained in:
Nanashi 2022-05-22 10:22:20 +09:00 committed by GitHub
parent 7905d63f7c
commit 2bb7ed2092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -486,8 +486,8 @@ class HTTPClient:
continue continue
# we've received a 500, 502, or 504, unconditional retry # we've received a 500, 502, 504, or 524, unconditional retry
if response.status in {500, 502, 504}: if response.status in {500, 502, 504, 524}:
await asyncio.sleep(1 + tries * 2) await asyncio.sleep(1 + tries * 2)
continue continue