Commit ac425d70 authored by Charlie Robbins's avatar Charlie Robbins

Merged pull request #39 from timmattison/master.

Looks like this may fix the issue that I reported
parents ddf31b22 642e1580
...@@ -45,11 +45,9 @@ exports.version = [0, 5, 0]; ...@@ -45,11 +45,9 @@ exports.version = [0, 5, 0];
// and sets the `maxSockets` property appropriately. // and sets the `maxSockets` property appropriately.
// //
function _getAgent (host, port, secure) { function _getAgent (host, port, secure) {
var agent = !secure ? http.getAgent(host, port) : https.getAgent({ var options = { host: host, port: port };
host: host, var agent = !secure ? http.getAgent(options) : https.getAgent(options);
port: port
});
agent.maxSockets = maxSockets; agent.maxSockets = maxSockets;
return agent; return agent;
} }
...@@ -668,4 +666,4 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, options ...@@ -668,4 +666,4 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, options
if (options.buffer && !errState) { if (options.buffer && !errState) {
options.buffer.resume(); options.buffer.resume();
} }
}; };
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment