Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test: join multicast group *after* binding

  • Loading branch information...
commit aef62a03ee27ffb149950df5caccc2b4965169d8 1 parent 9037dec
@bnoordhuis bnoordhuis authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/simple/test-dgram-multicast-multi-process.js
View
4 test/simple/test-dgram-multicast-multi-process.js
@@ -129,8 +129,6 @@ if (!cluster.isMaster) {
var receivedMessages = [];
var listenSocket = dgram.createSocket('udp4');
- listenSocket.addMembership(LOCAL_BROADCAST_HOST);
-
listenSocket.on('message', function(buf, rinfo) {
console.error('%s received %s from %j', process.pid
,util.inspect(buf.toString()), rinfo);
@@ -157,4 +155,6 @@ if (!cluster.isMaster) {
});
listenSocket.bind(common.PORT);
+
+ listenSocket.addMembership(LOCAL_BROADCAST_HOST);
}
Please sign in to comment.
Something went wrong with that request. Please try again.