From: Philipp Hagemeister Date: Mon, 25 Nov 2013 18:11:01 +0000 (+0100) Subject: Reduce socket timeout X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d46cc192d763f66655247ee122e397626481caca;p=youtube-dl Reduce socket timeout --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index a1ef3a94a..0cef1daf3 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -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')