mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 16:43:15 +00:00
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:
parent
ecd4c5431b
commit
70a64190cb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user