You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by "hebing (JIRA)" <ji...@apache.org> on 2016/08/24 06:52:22 UTC
[jira] [Commented] (APLO-388) MQTT client won't receive message
when reconnected to apollo server with cleanSession=false
[ https://issues.apache.org/jira/browse/APLO-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434291#comment-15434291 ]
hebing commented on APLO-388:
-----------------------------
you should unsubscribe before you disconnect it,it‘s same reason for
APLO-370
> MQTT client won't receive message when reconnected to apollo server with cleanSession=false
> -------------------------------------------------------------------------------------------
>
> Key: APLO-388
> URL: https://issues.apache.org/jira/browse/APLO-388
> Project: ActiveMQ Apollo
> Issue Type: Bug
> Components: apollo-mqtt
> Affects Versions: 1.7.1
> Environment: Windows 8 x86_64 Oracle JDK 1.7.0_79, OS X Mavericks Oracle JDK 1.7.0_79
> Reporter: Zhenlei Huang
>
> MQTT client won't receive message when reconnected to apollo server with cleanSession=false
> {code}
> client.setCleanSession(false)
> connect()
> subscribe("some/topic")
> disconnect()
> // reconnect ...
> connect()
> subscribe("some/topic")
> disconnect()
> // again
> connect()
> subscribe("some/topic")
> disconnect()
> // again
> connect()
> subscribe("some/topic")
>
> publish(...)
> receive(...) // NO response from apollo server
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)