summaryrefslogtreecommitdiffstats
path: root/module/PluginThread.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-24 20:41:05 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-24 20:41:05 +0100
commit56931ba3fdf53dc2a82afc1cbdbe8d3ec2204be5 (patch)
tree19332c5bd7d56ef3c4b2ec42a9079997cffce6f2 /module/PluginThread.py
parentfixed header and POST (diff)
downloadpyload-56931ba3fdf53dc2a82afc1cbdbe8d3ec2204be5.tar.xz
fixed reusing bad connection
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r--module/PluginThread.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py
index f008475c5..0e7594d3a 100644
--- a/module/PluginThread.py
+++ b/module/PluginThread.py
@@ -221,7 +221,9 @@ class DownloadThread(PluginThread):
code = 0
msg = e.args
- if code in (7, 18, 28, 52, 56):
+ self.m.log.debug("Urllib error %s: %s" % (code, msg))
+
+ if code in (7, 18, 28, 52, 56, 104):
self.m.log.warning(_("Couldn't connect to host or connection resetted waiting 1 minute and retry."))
wait = time() + 60
while time() < wait:
@@ -242,7 +244,7 @@ class DownloadThread(PluginThread):
else:
pyfile.setStatus("failed")
- self.m.log.error("pycurl error %s: %s" % (code, msg))
+ self.m.log.error("Urllib error %s: %s" % (code, msg))
if self.m.core.debug:
print_exc()
self.writeDebugReport(pyfile)