From 47c1cf1c201bcc7c049f99228be15200ac31ea5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Thu, 22 May 2014 18:31:33 +0200 Subject: [PATCH] [tests] increase timeout for https requests --- tests/requests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/requests.py b/tests/requests.py index 0ce6449..bab1597 100644 --- a/tests/requests.py +++ b/tests/requests.py @@ -82,7 +82,9 @@ class CurlRequest(TestBase): c.setopt(pycurl.SSL_VERIFYHOST, 0) c.setopt(pycurl.HTTPHEADER, reqheaders) c.setopt(pycurl.NOSIGNAL, 1) - c.setopt(pycurl.TIMEOUT, 2) + # ssl connections sometimes have timeout issues. could be entropy related.. + # use 10 second timeout instead of 2 for ssl - only 3 requests, shouldn't hurt + c.setopt(pycurl.TIMEOUT, ("http" == self.SCHEME and 2) or 10) b = StringIO.StringIO() c.setopt(pycurl.WRITEFUNCTION, b.write) c.setopt(pycurl.HEADERFUNCTION, self._recv_header)