diff options
author | stark, steven <steven.stark@att.com> | 2021-05-12 14:21:33 -0700 |
---|---|---|
committer | stark, steven <steven.stark@att.com> | 2021-05-12 14:22:09 -0700 |
commit | a1a5fc7377a9150cc15c2d3006d9d19b73551c50 (patch) | |
tree | 50852133bc5119366c834a981da01c1787cd7c69 | |
parent | 7530353e6ad1839f74af4c361b5215d68d78e0c7 (diff) |
[VVP] Adding timeout for requests
Issue-ID: VVP-535
Signed-off-by: stark, steven <steven.stark@att.com>
Change-Id: Ic8c0401b2be3782d417d20ce1c5b6ac948f396df
-rw-r--r-- | onap-client/onap_client/client/request.py | 2 | ||||
-rw-r--r-- | onap-client/setup.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/onap-client/onap_client/client/request.py b/onap-client/onap_client/client/request.py index eb65b56..fe96b16 100644 --- a/onap-client/onap_client/client/request.py +++ b/onap-client/onap_client/client/request.py @@ -126,7 +126,7 @@ class Request: http.mount("https://", adapter) http.mount("http://", adapter) - return http.request(**self.kwargs, verify=verify) + return http.request(**self.kwargs, verify=verify, timeout=(6.05, 60)) class APICatalogRequestObject: diff --git a/onap-client/setup.py b/onap-client/setup.py index 504f275..4361479 100644 --- a/onap-client/setup.py +++ b/onap-client/setup.py @@ -43,7 +43,7 @@ with open("README.md", "r") as fh: setuptools.setup( name="onap-client", - version="1.5.2", + version="1.5.3", author="Steven Stark", author_email="steven.stark@att.com", description="Python API wrapper for ONAP applications", |