2015-05-19 13:00:06 +02:00
|
|
|
'use strict';
|
2016-12-30 18:38:06 -05:00
|
|
|
const common = require('../common');
|
|
|
|
const net = require('net');
|
2011-12-01 14:51:53 +01:00
|
|
|
|
2017-01-08 13:19:00 +00:00
|
|
|
const conn = net.createConnection(common.PORT);
|
2011-12-01 14:51:53 +01:00
|
|
|
|
2016-07-15 15:43:24 -04:00
|
|
|
conn.on('error', common.mustCall(function() {
|
2011-12-01 14:51:53 +01:00
|
|
|
conn.destroy();
|
2016-07-15 15:43:24 -04:00
|
|
|
}));
|
2011-12-01 14:51:53 +01:00
|
|
|
|
2016-07-15 15:43:24 -04:00
|
|
|
conn.on('close', common.mustCall(function() {}));
|