From 105498f501ed48145ba21470badc7fdcddcdd10c Mon Sep 17 00:00:00 2001 From: Jinwei Zhao Date: Tue, 31 Jan 2017 21:36:21 +0800 Subject: fix loop --- ingrex/intel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ingrex') diff --git a/ingrex/intel.py b/ingrex/intel.py index 2cc4e7f..ca48bf0 100755 --- a/ingrex/intel.py +++ b/ingrex/intel.py @@ -43,7 +43,7 @@ class Intel(object): count = 0 while count < 3: try: - request = self.session.post(url, data=json.dumps(payload), headers=self.headers, timeout=(10, 60)) + request = self.session.post(url, data=json.dumps(payload), headers=self.headers, timeout=300) return request.json()['result'] except requests.ConnectionError: raise IntelException -- cgit v1.2.3