From ee693b599d01c8f7af231695dbe989a110f1d760 Mon Sep 17 00:00:00 2001 From: Thomas Riccardi Date: Thu, 14 Nov 2019 15:30:54 +0100 Subject: [PATCH] Fix timeout exception on Network create In fact `requests` `connect` timeout is *not* just TCP connect, but also includes sending the whole HTTP request, which can be much longer than 3s for Network uploads. Before the issue is fixed in `requests` we should not fail long uploads: stop using advanced timeouts for now. Also decreased FAST timeout from 10 to 8 so we are guaranteed to have at least 3 tries with the 60s timeout on tasks GET loop. --- deepomatic/api/http_helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deepomatic/api/http_helper.py b/deepomatic/api/http_helper.py index 6dc87a1..c54e79a 100644 --- a/deepomatic/api/http_helper.py +++ b/deepomatic/api/http_helper.py @@ -43,9 +43,9 @@ class RequestsTimeout(object): - FAST = (3.05, 10.) - MEDIUM = (3.05, 60.) - SLOW = (3.05, 600.) + FAST = 8. + MEDIUM = 60. + SLOW = 600. class HTTPHelper(object):