mosquitto-users team mailing list archive
-
mosquitto-users team
-
Mailing list archive
-
Message #00391
?????? I met a strange question
Hi,roger:
I am using win7 os bit 64, mosquitto cygwin version 1.2 (build date 2013-08-28). i sent all message with qos 2. just now , i made another test :
1.delete mosquitto.db then restart mosquitto
2. pub a qos 2 message without sub
3. restart subscriber and cannot receive message any more.
My mosquitto.conf is :
max_inflight_messages 100
max_queued_messages 100000
port 55003
autosave_interval 1800
persistence true
persistence_file mosquitto.db
persistence_location e:\mosquitto\ (this location can not with space such as 'programe files'. is it a bug?)
allow_anonymous false
password_file e:\mosquitto\\passwd.txt
user admin
My paho client is something like:
MemoryPersistence persistence = new MemoryPersistence();
try{
String url = FilesHelper.readProperties("broker").trim();
mqttClient = new MqttClient(url, clientID,persistence);
MqttConnectOptions connectOptions = new MqttConnectOptions();
connectOptions.setUserName("admin");
connectOptions.setPassword(passwd);
connectOptions.setCleanSession(false);
mqttClient.connect(connectOptions);
}catch(Exception e){
..
}
------------------ ???????? ------------------
??????: "roger";<roger@xxxxxxxxxx>;
????????: 2013??12??10??(??????) ????5:24
??????: "??(Grey)??"<86267306@xxxxxx>;
????: "mosquitto-users"<mosquitto-users@xxxxxxxxxxxxxxxxxxx>;
????: Re: [Mosquitto-users] I met a strange question
Hi,
Can you provide more details about your environment? What version of
mosquitto, what OS, what qos you are using, any other config options
that are set and anything about your publishers and subscribers like
message rate, topics used that might be useful.
Cheers,
Roger
On Tue, Dec 10, 2013 at 8:47 AM, ??(Grey)?? <86267306@xxxxxx> wrote:
> After a few days running , my broker cannot sub any messages , pub
> message is ok . my persistent file's size is only 1024K . in my
> mosquitto.conf max_queued_messages=100000 . i cannot found out what the
> matter , then delete persistent file mosquitto.db , everything is ok. any
> help will be aprreciated :D
>
>
>
>
> --
> Mailing list: https://launchpad.net/~mosquitto-users
> Post to : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mosquitto-users
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References