Commit 804ff3d2 authored by Bruno Duyé's avatar Bruno Duyé

Add 104 to request status_forcelist (Connection reset by peer)

parent 80fc2720
Pipeline #9945 failed with stage
in 6 minutes and 39 seconds
......@@ -68,7 +68,7 @@ def main():
# http://www.coglib.com/~icordasc/blog/2014/12/retries-in-requests.html
# backoff_factor=2 will make sleep for 2 * (2 ^ (retry_number - 1)), ie 0, 2, 4, 8, 16, 32 ...
requests_session.mount('http://', HTTPAdapter(max_retries=Retry(total=50,
backoff_factor=2, status_forcelist=[500, 503, 504])))
backoff_factor=2, status_forcelist=[104, 500, 503, 504])))
# Parse command line arguments
args = docopt(__doc__.format(self_filename=os.path.basename(__file__)))
target_dir = args['<target_dir>']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment