mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 20:45:11 +00:00
fix(serve): lock shared session state and throttle progress writes
Handlers share one service instance, so a per-session lock keeps two requests out of it at once. Track threads merge and write job state under one lock, and the progress sink coalesces ticks that say the same thing.
This commit is contained in:
@@ -19,9 +19,9 @@ log = logging.getLogger("proxies")
|
||||
def initialize_proxy_providers(raise_errors: bool = False, quiet: bool = False) -> List[Any]:
|
||||
"""Initialise and return available proxy providers from config.
|
||||
|
||||
A provider that fails to build is logged and skipped, unless *raise_errors* is set.
|
||||
*quiet* drops the per-provider summary lines: rendering a provider asks some of them for
|
||||
their server catalog over the network, which a repeated caller must not pay for.
|
||||
A proxy provider that fails to build is logged and skipped, unless *raise_errors* is set.
|
||||
*quiet* drops the per-provider summary lines: rendering a proxy provider asks some of them
|
||||
for their server catalogue over the network, which a repeated caller must not pay for.
|
||||
"""
|
||||
proxy_providers: list = []
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user