diff --git a/lib/wsapi_client.js b/lib/wsapi_client.js index ba560f0012752de92dfb2afe857629c799f6159a..9f889fefa15430d7443784ccb5631f444a93c1ab 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 = '';