Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
http: Fix agent id creation
Browse files Browse the repository at this point in the history
Unbreaks test-regress-GH-877.js
  • Loading branch information
ry committed Jul 3, 2011
1 parent 44d30f2 commit 6d8b43c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ function getAgent(options) {
if (options.port || options.host) {
host = options.host || 'localhost';
port = options.port || 80;
id = host + port;
id = host + ':' + port;
_opts.host = host;
_opts.port = port;
} else if (options.socketPath) {
Expand Down
4 changes: 0 additions & 4 deletions test/simple/test-regress-GH-877.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ var N = 20;
var responses = 0;
var maxQueued = 0;

debugger;

var agent = http.getAgent('127.0.0.1', common.PORT);
agent.maxSockets = 10;

Expand All @@ -23,8 +21,6 @@ server.listen(common.PORT, "127.0.0.1", function() {
port: common.PORT,
};

debugger;

var req = http.get(options, function(res) {
if (++responses == N) {
server.close();
Expand Down

0 comments on commit 6d8b43c

Please sign in to comment.