eclipse / mosquitto.rsmb

Mosquitto rsmb
85 stars 42 forks source link

MQTT-SN broker forgets published topics #4

Open ralight opened 8 years ago

ralight commented 8 years ago

migrated from Bugzilla #424704 status ASSIGNED severity normal in component RSMB for --- Reported in version unspecified on platform PC Assigned to: Ian Craggs

Original attachment names and IDs:

On 2013-12-27 13:57:17 -0500, John Donovan wrote:

According to the MQTT-SN spec, if a client goes to sleep by sending DISCONNECT with a timeout, and it reconnects within that period, the broker should remember all the registered topics for that client so it doesn't have to re-register. Mosquitto/RSMB doesn't do that as can be seen in MQTTSProtocol.c:442

On 2013-12-29 06:19:26 -0500, Ian Craggs wrote:

Yes. Sleeping clients is one of the two functions not yet implemented. The other being the ability to pre-register topics. I'll leave this bug open pending the addition of the function to support sleeping clients.

On 2015-03-07 07:25:41 -0500, Michal Foksa wrote:

Created attachment 251381 Fix of Bug 424704 - If duration in disconnect request is not zero, client registrations are kept.

Here you are a fix: if duration in disconnect request is not zero, client registrations are kept.

freebeans commented 8 years ago

So... is it still an open issue?

njh commented 8 years ago

@freebeans the fix by Michal Foksa has not been applied yet.

I will try submitting it as a Pull Request...