summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-03-17 06:00:57 +0100
committerAndrew Dolgov <[email protected]>2007-03-17 06:00:57 +0100
commitdd966fed31771d94783d2d738ea4294efb21efc6 (patch)
tree722f35c34bc1a01fa325e6a8de4db965e5a6d506
parent50b622142a21dc1cb3dffa18805f5f08e9842c39 (diff)
force set curl timeouts
-rw-r--r--functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 339a4ab40..1501a8713 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);