redfish: Limit requests to 30s max

The default in new libcurl versions is 'forever' which isn't useful for
a shared daemon.
This commit is contained in:
Richard Hughes 2021-07-19 12:44:37 +01:00
parent ecd4c5431b
commit 70a64190cb

View File

@ -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);