From dd966fed31771d94783d2d738ea4294efb21efc6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 Mar 2007 06:00:57 +0100 Subject: [PATCH] force set curl timeouts --- functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.php b/functions.php index 339a4ab4..1501a871 100644 --- a/functions.php +++ b/functions.php @@ -237,6 +237,8 @@ if ($fp) { curl_setopt($ch, CURLOPT_FILE, $fp); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15); + curl_setopt($ch, CURLOPT_TIMEOUT, 45); curl_exec($ch); curl_close($ch); fclose($fp); -- 2.39.5