提交 2bcf56d6 编写于 作者: W william.liangf

multicast注册中心增加unicast=false开关

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@629 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 06c145a8
......@@ -129,7 +129,7 @@ public class MulticastRegistry extends FailbackRegistry {
for (URL u : urls) {
String host = remoteAddress != null && remoteAddress.getAddress() != null
? remoteAddress.getAddress().getHostAddress() : url.getHost();
if (url.getParameter("uni", true) // 消费者的机器是否只有一个进程
if (url.getParameter("unicast", true) // 消费者的机器是否只有一个进程
&& ! NetUtils.getLocalHost().equals(host)) { // 同机器多进程不能用unicast单播信息,否则只会有一个进程收到信息
unicast(REGISTER + " " + u.toFullString(), host);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册