You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2009/02/23 15:37:27 UTC

svn commit: r747032 - /incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php

Author: chabotc
Date: Mon Feb 23 14:37:26 2009
New Revision: 747032

URL: http://svn.apache.org/viewvc?rev=747032&view=rev
Log:
Use the curl_connection_timeout setting for the overall timeout too, this bug was bound to cause some of the bug reports about fetching failing for people with high latency connections

Modified:
    incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php

Modified: incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php?rev=747032&r1=747031&r2=747032&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php (original)
+++ incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php Mon Feb 23 14:37:26 2009
@@ -157,7 +157,7 @@
     curl_setopt($handle, CURLOPT_AUTOREFERER, 1);
     curl_setopt($handle, CURLOPT_MAXREDIRS, 10);
     curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, Config::get('curl_connection_timeout'));
-    curl_setopt($handle, CURLOPT_TIMEOUT, 2);
+    curl_setopt($handle, CURLOPT_TIMEOUT, Config::get('curl_connection_timeout'));
     curl_setopt($handle, CURLOPT_HEADER, 1);
     curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, 0);
     $proxy = Config::get('proxy');