lizhanhui / moquette-mqtt

Automatically exported from code.google.com/p/moquette-mqtt
Apache License 2.0
0 stars 0 forks source link

publish2Subscribers problem #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps that reproduce the problem:
1. start broker with a clean system (=no db)
2a. connect a subscriber
2b. connect a publisher and publish some messages
3b. broker works well
4. kill broker
5. kill subscribers
6. restart broker
7. connect and publish a message
8. broker goes wrong because it tries to submit to old subscribers 
   (see attached logs)

Maybe I didn't understand the logic behind the code but I think that when 
broker is started the old subscriptions need to be deleted from the db.

I'm using Moquette v0.7 on Windows 8.1 (my dev environment)

Original issue reported on code.google.com by diego...@gmail.com on 3 Dec 2014 at 10:18

Attachments:

GoogleCodeExporter commented 9 years ago
Moved to https://github.com/andsel/moquette/issues/4

Original comment by selva.an...@gmail.com on 6 Dec 2014 at 3:37

GoogleCodeExporter commented 9 years ago
PS: 
1) as client I used mosquitto v1.3.5
2) steps 4 and 5 mean that I killed the processes (so without a correct 
disconnection from an mqtt and tcp/ip point of view)

Original comment by diego...@gmail.com on 26 Jan 2015 at 1:59