2015-05-19 13:00:06 +02:00
|
|
|
'use strict';
|
2011-12-01 14:51:53 +01:00
|
|
|
var common = require('../common');
|
|
|
|
var net = require('net');
|
|
|
|
|
|
|
|
var conn = net.createConnection(common.PORT);
|
|
|
|
|
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() {}));
|