[Mapbender-commits] r7818 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue May 17 06:03:36 EDT 2011
Author: armin11
Date: 2011-05-17 03:03:36 -0700 (Tue, 17 May 2011)
New Revision: 7818
Modified:
trunk/mapbender/http/classes/class_connector.php
Log:
Bugfixes
Modified: trunk/mapbender/http/classes/class_connector.php
===================================================================
--- trunk/mapbender/http/classes/class_connector.php 2011-05-17 10:02:55 UTC (rev 7817)
+++ trunk/mapbender/http/classes/class_connector.php 2011-05-17 10:03:36 UTC (rev 7818)
@@ -28,15 +28,15 @@
var $file;
private $connectionType;
+ private $timeOut = 20;
private $httpType = "get";
private $httpVersion = "1.0";
private $httpPostData;
private $httpContentType;
private $httpPostFieldsNumber;
private $curlSendCustomHeaders = true; //decide to send own headers or not
+
-
-
/**
* @constructor
* @param String url the URL that will be loaded (optional)
@@ -155,6 +155,10 @@
case "curlSendCustomHeaders":
$this->curlSendCustomHeaders = $value;
+ break;
+
+ case "timeOut":
+ $this->timeOut = (integer)$value;
break;
case "httpContentType":
@@ -206,6 +210,7 @@
//allow https connections and handle certificates quite simply ;-)
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
+ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeOut);
//$e = new mb_notice("connector: test1:");
//get hostname/ip out of url
//$host = parse_url($url,PHP_URL_HOST);
More information about the Mapbender_commits
mailing list