mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
303 B
15 lines
303 B
11 years ago
|
var assert = require('assert');
|
||
|
var common = require('../common');
|
||
|
|
||
|
var net = require('net');
|
||
|
|
||
|
net.createServer(function(conn) {
|
||
|
conn.unref();
|
||
10 years ago
|
}).listen(common.PORT).unref();
|
||
11 years ago
|
|
||
10 years ago
|
net.connect(common.PORT, 'localhost').pause();
|
||
11 years ago
|
|
||
|
setTimeout(function() {
|
||
|
assert.fail('expected to exit');
|
||
|
}, 1000).unref();
|