From 70a64190cb932ccfb426c61239f3e7c44cb3d2b6 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 19 Jul 2021 12:44:37 +0100 Subject: [PATCH] redfish: Limit requests to 30s max The default in new libcurl versions is 'forever' which isn't useful for a shared daemon. --- plugins/redfish/fu-redfish-backend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/redfish/fu-redfish-backend.c b/plugins/redfish/fu-redfish-backend.c index 8e11e79bc..b72319a93 100644 --- a/plugins/redfish/fu-redfish-backend.c +++ b/plugins/redfish/fu-redfish-backend.c @@ -72,6 +72,7 @@ fu_redfish_backend_request_new (FuRedfishBackend *self) /* since DSP0266 makes Basic Authorization a requirement, * it is safe to use Basic Auth for all implementations */ curl_easy_setopt (curl, CURLOPT_HTTPAUTH, (glong) CURLAUTH_BASIC); + curl_easy_setopt (curl, CURLOPT_TIMEOUT, (glong) 30); curl_easy_setopt (curl, CURLOPT_USERNAME, self->username); curl_easy_setopt (curl, CURLOPT_PASSWORD, self->password);