You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wubloader/downloader/downloader
Mike Lang 25bc29c8c8 downloader: Pool connections when we can
To preserve independence between workers and ensure that a
retry (a worker re-create) actually starts from scratch, we only pool connections
on a per-worker basis.
Furthermore, for the same reason, we only let SegmentGetters use the worker's
pool on their first attempt. After that, they create a new pool to ensure they have a clean retry.

Despite this, the result should be that we're almost always re-using an existing connection
when getting segments or media playlists, unless something goes wrong.

SSL connection setup was measured as almost half the CPU time used by the process,
so this change should result in a signifigant CPU usage reduction.
6 years ago
..
__init__.py
__main__.py Allow setting of log level via WUBLOADER_LOG_LEVEL env var 6 years ago
hls_playlist.py
main.py downloader: Pool connections when we can 6 years ago
twitch.py downloader: Pool connections when we can 6 years ago