This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new aaa167d  About the parameter unicast of the multicast description is 
not accurate (#436)
aaa167d is described below

commit aaa167d8439b738fed0b9187d1d900ab95652b34
Author: kang.deng <[email protected]>
AuthorDate: Thu Jul 25 08:49:54 2019 +0800

    About the parameter unicast of the multicast description is not accurate 
(#436)
    
    When running dubbo-demo-annotation, the provider and consumer are on one 
machine at the same time, the consumer may have an exception of No provider 
available for the service, then you also need the consumer to declare 
unicast=false, and in this case Only one consumer
---
 docs/zh-cn/user/references/registry/multicast.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/zh-cn/user/references/registry/multicast.md 
b/docs/zh-cn/user/references/registry/multicast.md
index c2c7ef0..b841ff6 100644
--- a/docs/zh-cn/user/references/registry/multicast.md
+++ b/docs/zh-cn/user/references/registry/multicast.md
@@ -23,7 +23,7 @@ Multicast 注册中心不需要启动任何中心节点,只要广播地址一
 <dubbo:registry protocol="multicast" address="224.5.6.7:1234" />
 ```
 
-为了减少广播量,Dubbo 缺省使用单播发送提供者地址信息给消费者,如果一个机器上同时启了多个消费者进程,消费者需声明 
`unicast=false`,否则只会有一个消费者能收到消息:
+为了减少广播量,Dubbo 缺省使用单播发送提供者地址信息给消费者,如果一个机器上同时启了多个消费者进程,消费者需声明 
`unicast=false`,否则只会有一个消费者能收到消息;当服务者和消费者运行在同一台机器上,消费者同样需要声明`unicast=false`,否则消费者无法收到消息,导致No
 provider available for the service异常:
 
 ```xml
 <dubbo:registry address="multicast://224.5.6.7:1234?unicast=false" />
@@ -35,4 +35,4 @@ Multicast 注册中心不需要启动任何中心节点,只要广播地址一
 <dubbo:registry protocol="multicast" address="224.5.6.7:1234">
     <dubbo:parameter key="unicast" value="false" />
 </dubbo:registry>
-```
\ No newline at end of file
+```

Reply via email to