mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 12:24:41 +00:00

PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>
15 lines
275 B
JavaScript
15 lines
275 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const net = require('net');
|
|
|
|
var client;
|
|
var TIMEOUT = 10 * 1000;
|
|
|
|
client = net.createConnection(53, '8.8.8.8', function() {
|
|
client.unref();
|
|
});
|
|
|
|
client.on('close', common.fail);
|
|
|
|
setTimeout(common.fail, TIMEOUT).unref();
|