Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piscisaureus/1711166 to your computer and use it in GitHub Desktop.
Save piscisaureus/1711166 to your computer and use it in GitHub Desktop.
From 0ad2a9a2e0c82f71efaa56cf4eb31c8912703065 Mon Sep 17 00:00:00 2001
From: Bert Belder <bertbelder@gmail.com>
Date: Tue, 31 Jan 2012 16:46:14 +0100
Subject: [PATCH 1/1] Small test-dgram-multicast-multi-process fixes
Somehow windows doesn't want to bind to 224.0.0.1. Let's test with a multicast
address that has no special meaning.
---
test/simple/test-dgram-multicast-multi-process.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/simple/test-dgram-multicast-multi-process.js b/test/simple/test-dgram-multicast-multi-process.js
index 03e07de..35ade38 100644
--- a/test/simple/test-dgram-multicast-multi-process.js
+++ b/test/simple/test-dgram-multicast-multi-process.js
@@ -26,7 +26,7 @@ var common = require('../common'),
assert = require('assert'),
Buffer = require('buffer').Buffer,
fork = require('child_process').fork,
- LOCAL_BROADCAST_HOST = '224.0.0.1',
+ LOCAL_BROADCAST_HOST = '224.0.0.114',
TIMEOUT = 5000,
messages = [
new Buffer('First message to send'),
@@ -153,8 +153,8 @@ if (process.argv[2] !== 'child') {
sendSocket.send(buf, 0, buf.length,
common.PORT, LOCAL_BROADCAST_HOST, function(err) {
if (err) throw err;
- console.error('sent %s to %s', util.inspect(buf.toString()),
- LOCAL_BROADCAST_HOST + common.PORT);
+ console.error('sent %s to %s:%s', util.inspect(buf.toString()),
+ LOCAL_BROADCAST_HOST, common.PORT);
process.nextTick(sendSocket.sendNext);
});
};
--
1.7.7.1.msysgit.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment