|
|
@ -191,11 +191,13 @@ class HttpFD(FileDownloader):
|
|
|
|
# Unexpected HTTP error
|
|
|
|
# Unexpected HTTP error
|
|
|
|
raise
|
|
|
|
raise
|
|
|
|
raise RetryDownload(err)
|
|
|
|
raise RetryDownload(err)
|
|
|
|
|
|
|
|
except socket.timeout as err:
|
|
|
|
|
|
|
|
raise RetryDownload(err)
|
|
|
|
except socket.error as err:
|
|
|
|
except socket.error as err:
|
|
|
|
if err.errno != errno.ECONNRESET:
|
|
|
|
if err.errno in (errno.ECONNRESET, errno.ETIMEDOUT):
|
|
|
|
# Connection reset is no problem, just retry
|
|
|
|
# Connection reset is no problem, just retry
|
|
|
|
raise
|
|
|
|
|
|
|
|
raise RetryDownload(err)
|
|
|
|
raise RetryDownload(err)
|
|
|
|
|
|
|
|
raise
|
|
|
|
|
|
|
|
|
|
|
|
def download():
|
|
|
|
def download():
|
|
|
|
nonlocal throttle_start
|
|
|
|
nonlocal throttle_start
|
|
|
|