From d589aa257d3ab99a50444ff42f43b3b9d650d089 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Tue, 9 Apr 2019 18:42:52 +0200 Subject: HTTPClient: actually set a timeout for requests The 'timeout' attribute was previously left unused. Change-Id: If615c390302425fe5a646b4651ec6f56aa08fd22 Closes-Bug: #1822052 --- glanceclient/common/http.py | 1 + 1 file changed, 1 insertion(+) (limited to 'glanceclient') diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 9ba806f..17d7cc7 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -270,6 +270,7 @@ class HTTPClient(_BaseHTTPClient): conn_url, data=data, headers=headers, + timeout=self.timeout, **kwargs) except requests.exceptions.Timeout as e: message = ("Error communicating with %(url)s: %(e)s" % -- cgit v1.2.1