summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-11-30 15:18:04 +0100
committerGravatar spoob <spoob@gmx.de> 2009-11-30 15:18:04 +0100
commitf7563727e1ccb8d764904806cb9e262ba555f824 (patch)
tree1eb7b2b8b5dff1a6dd3b2ffab8d8d8f6e1b5c7a3 /module/network
parentTest Change (diff)
downloadpyload-f7563727e1ccb8d764904806cb9e262ba555f824.tar.xz
Cleaned XMLRPC in Core
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index 9f27af4ec..b80ea44da 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -51,7 +51,7 @@ class Request:
self.lastURL = None
self.auth = False
- self.timeout = 5*3600
+ self.timeout = 5
try:
if pycurl: self.curl = True
@@ -94,7 +94,7 @@ class Request:
self.pycurl = pycurl.Curl()
self.pycurl.setopt(pycurl.FOLLOWLOCATION, 1)
self.pycurl.setopt(pycurl.MAXREDIRS, 5)
- self.pycurl.setopt(pycurl.TIMEOUT, self.timeout)
+ self.pycurl.setopt(pycurl.TIMEOUT, (self.timeout*3600))
self.pycurl.setopt(pycurl.CONNECTTIMEOUT, 30)
self.pycurl.setopt(pycurl.NOSIGNAL, 1)
self.pycurl.setopt(pycurl.NOPROGRESS, 0)