A feature-rich command-line audio/video downloader
[http] Fix bug in retrying on read timeout in py < 3.10
coletdjnz5faf6528fb70
diff --git a/yt_dlp/downloader/http.py b/yt_dlp/downloader/http.pyindex 9b7598b1cf..12a2f0cc70 100644--- a/yt_dlp/downloader/http.py+++ b/yt_dlp/downloader/http.py@@ -1,5 +1,6 @@import osimport random+import socketimport sslimport time@@ -18,7 +19,13 @@ from ..utils import (write_xattr,)-RESPONSE_READ_EXCEPTIONS = (TimeoutError, ConnectionError, ssl.SSLError, compat_http_client.HTTPException)+RESPONSE_READ_EXCEPTIONS = (+ TimeoutError,+ socket.timeout, # compat: py < 3.10+ ConnectionError,+ ssl.SSLError,+ compat_http_client.HTTPException+)class HttpFD(FileDownloader):