Change-Id: I6ba62ef7e1f588443d0fbf2a4025101bccc97464
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
class Http(http.Http):
+ TIMEOUT = 10
def __init__(self, url, user='admin', password='admin', **kwargs):
self._url = url
curl_cmd.setopt(pycurl.VERBOSE, True)
if not skip_query_admin:
endpoint = self._complete_endpoint(endpoint)
+ curl_cmd.setopt(pycurl.TIMEOUT, self.TIMEOUT)
curl_cmd.setopt(pycurl.URL, self._url + endpoint)
curl_cmd.setopt(pycurl.SSL_VERIFYPEER, 0)
curl_cmd.setopt(pycurl.SSL_VERIFYHOST, 0)