mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 06:26:24 +00:00

PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>
12 lines
247 B
JavaScript
12 lines
247 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const net = require('net');
|
|
|
|
var conn = net.createConnection(common.PORT);
|
|
|
|
conn.on('error', common.mustCall(function() {
|
|
conn.destroy();
|
|
}));
|
|
|
|
conn.on('close', common.mustCall(function() {}));
|