From ae55e11c1f0f5b1e9378b06cccc78f0e7bae5b97 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 13 Nov 2011 17:05:28 +0100 Subject: rehost,to timeout fix --- module/network/HTTPRequest.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'module/network/HTTPRequest.py') diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index 6672a58e6..bd8cdd72e 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -118,6 +118,10 @@ class HTTPRequest(): if "auth" in options: self.c.setopt(pycurl.USERPWD, str(options["auth"])) + if "timeout" in options: + self.c.setopt(pycurl.LOW_SPEED_TIME, options["timeout"]) + + def addCookies(self): """ put cookies from curl handle to cj """ if self.cj: -- cgit v1.2.3