X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fsol005%2Fhttp.py;h=0228d6ae41f71545a2bdc4bab1e339068a11bd65;hb=f4036d090fc8a49c37d62e774d7725095d2a8376;hp=b73789483b095ba84b01a49abde5110671bf43ec;hpb=8081c9e7ea5a57e7e632132a35e7443fe8f642cf;p=osm%2Fosmclient.git diff --git a/osmclient/sol005/http.py b/osmclient/sol005/http.py index b737894..0228d6a 100644 --- a/osmclient/sol005/http.py +++ b/osmclient/sol005/http.py @@ -24,7 +24,7 @@ from osmclient.common.exceptions import OsmHttpException, NotFound class Http(http.Http): - TIMEOUT = 10 + CONNECT_TIMEOUT = 15 def __init__(self, url, user='admin', password='admin', **kwargs): self._url = url @@ -64,7 +64,7 @@ class Http(http.Http): 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)