Improve timeout management

Fix #741
This commit is contained in:
Julien Duponchelle committed 2016-10-25 14:41:33 +02:00
1 parent f8cba8cd50
commit 9799dabb98
2 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -454,7 +454,7 @@ class Compute:
data = send_data(data)
else:
data = json.dumps(data)
response = yield from self._session().request(method, url, headers=headers, data=data, auth=self._auth, chunked=chunked)
response = yield from self._session().request(method, url, headers=headers, data=data, auth=self._auth, chunked=chunked, timeout=timeout)
body = yield from response.read()
if body and not raw:
body = body.decode()