Browse Source

test: add `reuseAddr` in dgram-multicast...

Add `reuseAddr` option in `test-dgram-multicast-multi-process.js`
v0.11.13-release
Fedor Indutny 11 years ago
parent
commit
045f765a1a
  1. 5
      test/internet/test-dgram-multicast-multi-process.js

5
test/internet/test-dgram-multicast-multi-process.js

@ -189,7 +189,10 @@ if (process.argv[2] !== 'child') {
if (process.argv[2] === 'child') {
var receivedMessages = [];
var listenSocket = dgram.createSocket('udp4');
var listenSocket = dgram.createSocket({
type: 'udp4',
reuseAddr: true
});
listenSocket.on('message', function(buf, rinfo) {
console.error('[CHILD] %s received %s from %j', process.pid,

Loading…
Cancel
Save