From 355685d8b9fc2c7787850c90df2bc502145ff8a2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 8 Sep 2022 07:46:13 -0600 Subject: [PATCH] 2 second time out for library description fetch, to (maybe) avoid threading --- libs/ardour/library.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/library.cc b/libs/ardour/library.cc index fbc0ed06d0..8fff83529b 100644 --- a/libs/ardour/library.cc +++ b/libs/ardour/library.cc @@ -66,7 +66,8 @@ LibraryFetcher::get_descriptions () curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, CurlWrite_CallbackFunc_StdString); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buf); - CURLcode res = curl_easy_perform (curl); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2L); + CURLcode res = curl_easy_perform (curl); curl_easy_cleanup (curl); if (res != CURLE_OK) {