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

PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>
15 lines
310 B
JavaScript
15 lines
310 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
const 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();
|