From f869b7d3a238e1e88ba87109ad0ccadc48d87110 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Thu, 1 Dec 2011 01:18:22 -0700 Subject: [PATCH] disable connection pooling (agent) in wsapi client - totally obliterates our ability to apply load --- lib/wsapi_client.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/wsapi_client.js b/lib/wsapi_client.js index ba560f001..9f889fefa 100644 --- a/lib/wsapi_client.js +++ b/lib/wsapi_client.js @@ -18,7 +18,7 @@ * the Initial Developer. All Rights Reserved. * * Contributor(s): - * Lloyd Hilaiel <lloyd@hilaiel.com> + * Lloyd Hilaiel <lloyd@hilaiel.com> * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or @@ -98,7 +98,8 @@ exports.get = function(cfg, path, context, getArgs, cb) { host: uObj.hostname, port: uObj.port, path: path, - headers: headers + headers: headers, + agent: false // disable node.js connection pooling }, function(res) { extractCookies(context, res); var body = ''; @@ -156,7 +157,8 @@ exports.post = function(cfg, path, context, postArgs, cb) { port: uObj.port, path: path, headers: headers, - method: "POST" + method: "POST", + agent: false // disable node.js connection pooling }, function(res) { extractCookies(context, res); var body = ''; -- GitLab