fix: added some timeout safeguards for curl calls (#5743)

This commit is contained in:
Neil Lathwood
2017-02-03 14:12:42 +00:00
committed by Tony Murray
parent 5733fb27fa
commit a19b2614dc
3 changed files with 7 additions and 0 deletions

View File

@ -1499,6 +1499,7 @@ function oxidized_reload_nodes()
$ch = curl_init($oxidized_reload_url);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 1);