mirror of https://github.com/ekimekim/wubloader
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.
a5213ccb3b
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 | |
---|---|---|
.. | ||
downloader | 6 years ago | |
Dockerfile | 6 years ago | |
setup.py | 6 years ago |