blob: 512e56f773a96651f665a95f8de7b96cbfbcf4f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
'use strict';
const common = require('../common');
const net = require('net');
const TIMEOUT = 10 * 1000;
const client = net.createConnection(53, '8.8.8.8', function() {
client.unref();
});
client.on('close', common.mustNotCall());
setTimeout(common.mustNotCall(), TIMEOUT).unref();
|