X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fdownloader%2Fhttp.py;h=49170cf9d47634602efe7832b235e4a751e25817;hb=12832049170e8b3bd457706f49e8e09de12a368c;hp=9b023c5c17e4bd29c7d4d82ce8edbfdf48522f8a;hpb=e77d2975afda3750104c90b7c0012c02a2a00b10;p=youtube-dl diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index 9b023c5c1..49170cf9d 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -102,11 +102,11 @@ class HttpFD(FileDownloader): resume_len = 0 open_mode = 'wb' break - except SocketError as e: if e.errno != errno.ECONNRESET: - raise # Not error we are looking for - pass + # Connection reset is no problem, just retry + raise + # Retry count += 1 if count <= retries: