diff --git a/lib/http/client.py b/lib/http/client.py index 8658aed45b22ab1bbb57e1b0c8837efd4929a219..dc502abbed0cf03557b2ca979df34b9808519efc 100644 --- a/lib/http/client.py +++ b/lib/http/client.py @@ -143,6 +143,10 @@ class _HttpClient(object): curl.setopt(pycurl.USERAGENT, http.HTTP_GANETI_VERSION) curl.setopt(pycurl.PROXY, "") + # Disable SSL session ID caching (pycurl >= 7.16.0) + if hasattr(pycurl, "SSL_SESSIONID_CACHE"): + curl.setopt(pycurl.SSL_SESSIONID_CACHE, False) + # Pass cURL object to external config function if curl_config_fn: curl_config_fn(curl)