mirror of
https://github.com/knutwurst/patchdl.git
synced 2026-10-14 07:02:14 +02:00
The three other curl_easy code paths (downloader, piece pool, net_diag) now set CURLOPT_NOSIGNAL=1L plus PROTOCOLS_STR/REDIR_PROTOCOLS_STR = "https" — matching what patchdl_http_get already does. SIGPIPE on a broken connection in a worker thread previously could crash the process; the protocol pin keeps a redirect from sliding off https. patchdl_proc_kill_others is now bounded to 8 iterations. If kill returns success but the process never exits (zombie / unusual proc-table state), sleep(1) × N would otherwise stall startup indefinitely. lookup_tsv rejects URLs that don't start with https://. The TSV file lives under /data/patchdl and is writable by anyone with /data access; patchdl_http_get's host_allowed gate still applies, but failing earlier keeps a poisoned line from even reaching the network layer.