From a1a5fc7377a9150cc15c2d3006d9d19b73551c50 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Wed, 12 May 2021 14:21:33 -0700 Subject: [VVP] Adding timeout for requests Issue-ID: VVP-535 Signed-off-by: stark, steven Change-Id: Ic8c0401b2be3782d417d20ce1c5b6ac948f396df --- onap-client/onap_client/client/request.py | 2 +- 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", -- cgit 1.2.3-korg