default connect_timeout to 5 instead of extlib 10
[quix0rs-gnu-social.git] / lib / httpclient.php
index 3de88e2259ea3507946a7fd37c7445fa8440b34e..c251a03d4551e0ef0a209050b691793a8771ad85 100644 (file)
@@ -121,6 +121,7 @@ class HTTPClient extends HTTP_Request2
 
     function __construct($url=null, $method=self::METHOD_GET, $config=array())
     {
+        $this->config['connect_timeout'] = common_config('http', 'connect_timeout') ?: $this->config['connect_timeout'];
         $this->config['max_redirs'] = 10;
         $this->config['follow_redirects'] = true;