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.
 
 
 
 
 
 

14 lines
316 B

'use strict';
const common = require('../common');
const dgram = require('dgram');
// should not hang, see #1282
dgram.createSocket('udp4');
dgram.createSocket('udp6');
{
// Test the case of ref()'ing a socket with no handle.
const s = dgram.createSocket('udp4');
s.close(common.mustCall(() => s.ref()));
}