Skip to content

Commit d467bbc

Browse files
committed
squash: nits
1 parent 1ffb714 commit d467bbc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/parallel/test-net-server-max-connections.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,20 @@ const net = require('net');
99
// and the last 10 connections are rejected.
1010

1111
const N = 20;
12-
var count = 0;
1312
var closes = 0;
1413
const waits = [];
1514

16-
const server = net.createServer(function(connection) {
17-
console.error('connect %d', count++);
15+
const server = net.createServer(common.mustCall(function(connection) {
1816
connection.write('hello');
1917
waits.push(function() { connection.end(); });
20-
});
18+
}, N / 2));
2119

2220
server.listen(0, function() {
2321
makeConnection(0);
2422
});
2523

2624
server.maxConnections = N / 2;
2725

28-
console.error('server.maxConnections = %d', server.maxConnections);
29-
3026

3127
function makeConnection(index) {
3228
const c = net.createConnection(server.address().port);

0 commit comments

Comments
 (0)