【发布时间】:2015-12-04 07:23:25
【问题描述】:
我使用 mosquitto 作为我的代理服务器。我想建立一个基于桥接的代理集群。
当我发布并订阅主题“存在”时,我从三个代理服务器收到了无穷无尽的重复消息。
我有三台服务器,例如: 10.80.1.1、10.80.1.2
我对每台服务器都有以下配置。
on server 10.80.1.1, the config as the following:
connection myconn
address 10.80.1.2:1881
topic # both
cleansession true
try_private false
bridge_attempt_unsubscribe false
notifications false
allow_anonymous true
start_type automatic
clientid Bridge3
on server 10.80.1.2, the config as the following:
connection myconn
address 10.80.1.1:1883
topic # both
cleansession true
try_private false
bridge_attempt_unsubscribe false
notifications false
allow_anonymous true
start_type automatic
clientid Bridge2
谁能帮我解决这个问题。
【问题讨论】: