Skip to content

Commit 6d8b43c

Browse files
committed
http: Fix agent id creation
Unbreaks test-regress-GH-877.js
1 parent 44d30f2 commit 6d8b43c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ function getAgent(options) {
14371437
if (options.port || options.host) {
14381438
host = options.host || 'localhost';
14391439
port = options.port || 80;
1440-
id = host + port;
1440+
id = host + ':' + port;
14411441
_opts.host = host;
14421442
_opts.port = port;
14431443
} else if (options.socketPath) {

test/simple/test-regress-GH-877.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ var N = 20;
66
var responses = 0;
77
var maxQueued = 0;
88

9-
debugger;
10-
119
var agent = http.getAgent('127.0.0.1', common.PORT);
1210
agent.maxSockets = 10;
1311

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

26-
debugger;
27-
2824
var req = http.get(options, function(res) {
2925
if (++responses == N) {
3026
server.close();

0 commit comments

Comments
 (0)