enlarge timeout from 10 to 15. Sometimes NBI takes many time to respond,
low general timeout is not a good aproach, but connection timeout
Change-Id: I17c67c94cccba83baf6ea56a9225e0674a223c11
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
class Http(http.Http):
- TIMEOUT = 10
+ CONNECT_TIMEOUT = 15
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.CONNECTTIMEOUT, self.CONNECT_TIMEOUT)
curl_cmd.setopt(pycurl.URL, self._url + endpoint)
curl_cmd.setopt(pycurl.SSL_VERIFYPEER, 0)
curl_cmd.setopt(pycurl.SSL_VERIFYHOST, 0)