From a635721c501ff947ef716ded4471efc4331cf352 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 24 Jun 2022 20:49:23 +0100 Subject: [PATCH] client download, sets a sane connection timeout, the default being way to high. --- src/client/curl/download.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/curl/download.c b/src/client/curl/download.c index 0d24ddfe..2937dba2 100644 --- a/src/client/curl/download.c +++ b/src/client/curl/download.c @@ -294,6 +294,7 @@ static void CL_StartHTTPDownload (dlqueue_t *entry, dlhandle_t *dl) qcurl_easy_setopt(dl->curl, CURLOPT_PROXY, cl_http_proxy->string); qcurl_easy_setopt(dl->curl, CURLOPT_LOW_SPEED_TIME, (long)cl_http_bw_limit_tmout->value); qcurl_easy_setopt(dl->curl, CURLOPT_LOW_SPEED_LIMIT, (long)cl_http_bw_limit_rate->value); + qcurl_easy_setopt(dl->curl, CURLOPT_CONNECTTIMEOUT, 30); qcurl_easy_setopt(dl->curl, CURLOPT_FOLLOWLOCATION, 1); qcurl_easy_setopt(dl->curl, CURLOPT_MAXREDIRS, 5); qcurl_easy_setopt(dl->curl, CURLOPT_NOPROGRESS, (cl_http_show_dw_progress->value != 1.0));