mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Backport-PR-URL: https://github.com/nodejs/node/pull/19120 PR-URL: https://github.com/nodejs/node/pull/17924 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
15 lines
366 B
JavaScript
15 lines
366 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const dgram = require('dgram');
|
|
|
|
// should not hang, see https://github.com/nodejs/node-v0.x-archive/issues/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()));
|
|
}
|