Commit 62fbebb080576d5ba19219ff81323e4a14f59c94
1 parent
1dee4bdc
增加超时时间
Showing
1 changed file
with
1 additions
and
1 deletions
commons/MySession.py
@@ -45,7 +45,7 @@ class mysession(requests.Session): | @@ -45,7 +45,7 @@ class mysession(requests.Session): | ||
45 | self.url_client = mysession.url_client.replace("http://test.", com.get_global_config("global_data", "environment", "en")) | 45 | self.url_client = mysession.url_client.replace("http://test.", com.get_global_config("global_data", "environment", "en")) |
46 | self.header_client = mysession.header_client | 46 | self.header_client = mysession.header_client |
47 | self.body_client = mysession.body_client | 47 | self.body_client = mysession.body_client |
48 | - self.timeout = (6,6) | 48 | + self.timeout = (10,10) |
49 | self.max_retries = 3 | 49 | self.max_retries = 3 |
50 | self.keep_alive = False | 50 | self.keep_alive = False |
51 | self.ssl_verify = False | 51 | self.ssl_verify = False |