mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
test: join multicast group *after* binding
This commit is contained in:
1 parent
9037decb28
commit
aef62a03ee
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user