mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-29 06:44:20 +00:00
![]() By default, the sync client from proxmox-http (powered by ureq) does not have any request timeout. To avoid blocking the current thread for a prolonged period of time, we now make use of the previously added `Client::new_with_timeout` function to create a new HTTP client with a default timeout of 10 seconds. In the long run it would be nicer to have a higher timeout here, say 60s, to cope with flaky and high-latency networks and potentially overloaded targets. But for that we need to change the architecture of how notifications are send out to ensure that now thread accepting connections can be blocked. Signed-off-by: Lukas Wagner <l.wagner@proxmox.com> [ TL: Change timeout from 5s to 10s as trade-off and expand commit message slightly with some reasoning for that still relatively short time value ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
||
---|---|---|
.. | ||
debian | ||
src | ||
Cargo.toml |