force set curl timeouts

This commit is contained in:
Andrew Dolgov 2007-03-17 06:00:57 +01:00
parent 50b622142a
commit dd966fed31
1 changed files with 2 additions and 0 deletions

View File

@ -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);