diff options
author | Tobias Sarnowski <sarnowski@new-thoughts.org> | 2011-01-11 13:18:20 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-01-12 21:00:46 +0100 |
commit | 1415e8b5968a264b9a2aa5bac0d77c2a898c8e81 (patch) | |
tree | 747f255bc96fc4289086adaaf05976e5d45fd05a | |
parent | 4481b2a04e9fbc3dd2696f436d5c2d2a725c8386 (diff) | |
download | rpg-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.
-rw-r--r-- | inc/HTTPClient.php | 2 |
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'; |