1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 01:24:09 +02:00

add proxy option

This commit is contained in:
Robin Appelman 2022-08-05 17:16:53 +02:00
commit 6239b0cab7
9 changed files with 742 additions and 29 deletions

View file

@ -155,14 +155,14 @@ impl PhpVersion {
ip.ok_or(Report::msg("Container not running"))?
))
.into_diagnostic()?;
timeout(Duration::from_secs(5), async {
timeout(Duration::from_secs(15), async {
while !client.get(url.clone()).send().await.is_ok() {
sleep(Duration::from_millis(100)).await
}
})
.await
.into_diagnostic()
.wrap_err("Timeout after 5 seconds")
.wrap_err("Timeout after 15 seconds")
}
}