mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-23 02:32:16 +00:00
Reduce socket timeout
This commit is contained in:
parent
bb2bebdbe1
commit
d46cc192d7
1 changed files with 1 additions and 1 deletions
|
@ -968,7 +968,7 @@ class YoutubeDL(object):
|
||||||
proxy_map.update(handler.proxies)
|
proxy_map.update(handler.proxies)
|
||||||
write_string(u'[debug] Proxy map: ' + compat_str(proxy_map) + u'\n')
|
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_cookiefile = self.params.get('cookiefile')
|
||||||
opts_proxy = self.params.get('proxy')
|
opts_proxy = self.params.get('proxy')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue