blob: 8c0e1c93cfb2084bc71464cfb134910d7d8fa1ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
'use strict';
const common = require('../common');
var net = require('net');
net.createServer(function(conn) {
conn.unref();
}).listen(0, function() {
net.connect(this.address().port, 'localhost').pause();
setTimeout(function() {
common.fail('expected to exit');
}, 1000).unref();
}).unref();
|