mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
parent
e619d8a752
commit
9fab498fbf
1 changed files with 6 additions and 4 deletions
|
@ -191,11 +191,13 @@ class HttpFD(FileDownloader):
|
||||||
# Unexpected HTTP error
|
# Unexpected HTTP error
|
||||||
raise
|
raise
|
||||||
raise RetryDownload(err)
|
raise RetryDownload(err)
|
||||||
except socket.error as err:
|
except socket.timeout as err:
|
||||||
if err.errno != errno.ECONNRESET:
|
|
||||||
# Connection reset is no problem, just retry
|
|
||||||
raise
|
|
||||||
raise RetryDownload(err)
|
raise RetryDownload(err)
|
||||||
|
except socket.error as err:
|
||||||
|
if err.errno in (errno.ECONNRESET, errno.ETIMEDOUT):
|
||||||
|
# Connection reset is no problem, just retry
|
||||||
|
raise RetryDownload(err)
|
||||||
|
raise
|
||||||
|
|
||||||
def download():
|
def download():
|
||||||
nonlocal throttle_start
|
nonlocal throttle_start
|
||||||
|
|
Loading…
Reference in a new issue