Reduce socket timeout
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 25 Nov 2013 18:11:01 +0000 (19:11 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 25 Nov 2013 18:11:01 +0000 (19:11 +0100)
youtube_dl/YoutubeDL.py

index a1ef3a94ab501f75316e1c4e6b758bfc598e0445..0cef1daf328837c3d2a62af36a629247d2563ec9 100644 (file)
@@ -968,7 +968,7 @@ class YoutubeDL(object):
                 proxy_map.update(handler.proxies)
         write_string(u'[debug] Proxy map: ' + compat_str(proxy_map) + u'\n')
 
-    def _setup_opener(self, timeout=300):
+    def _setup_opener(self, timeout=20):
         opts_cookiefile = self.params.get('cookiefile')
         opts_proxy = self.params.get('proxy')