summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
authorTobias Sarnowski <sarnowski@new-thoughts.org>2011-01-11 13:18:20 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-01-12 21:00:46 +0100
commit1415e8b5968a264b9a2aa5bac0d77c2a898c8e81 (patch)
tree747f255bc96fc4289086adaaf05976e5d45fd05a /inc/HTTPClient.php
parent4481b2a04e9fbc3dd2696f436d5c2d2a725c8386 (diff)
downloadrpg-1415e8b5968a264b9a2aa5bac0d77c2a898c8e81.tar.gz
rpg-1415e8b5968a264b9a2aa5bac0d77c2a898c8e81.tar.bz2
keep http connections application wide alive
Using a static context for the connection pool allows connection reuse throughout the whole application without additional changes in other places.
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index d46200697..1dbcd6be1 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -111,7 +111,7 @@ class HTTPClient {
var $proxy_except; // regexp of URLs to exclude from proxy
// list of kept alive connections
- var $connections = array();
+ static $connections = array();
// what we use as boundary on multipart/form-data posts
var $boundary = '---DokuWikiHTTPClient--4523452351';