mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-5997 - support legacy clients
(cherry picked from commit b83c38b04c
)
This commit is contained in:
parent
69e894cda8
commit
95443543e7
|
@ -376,6 +376,9 @@ public class MQTTProtocolConverter {
|
|||
|
||||
public void onUnSubscribe(UNSUBSCRIBE command) throws MQTTProtocolException {
|
||||
checkConnected();
|
||||
if (command.qos() != QoS.AT_LEAST_ONCE && (version != V3_1 || publishDollarTopics != true)) {
|
||||
throw new MQTTProtocolException("Failed to process unsubscribe request", true, new Exception("UNSUBSCRIBE frame not properly formatted, QoS"));
|
||||
}
|
||||
UTF8Buffer[] topics = command.topics();
|
||||
if (topics != null) {
|
||||
for (UTF8Buffer topic : topics) {
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -96,7 +96,7 @@
|
|||
<leveldbjni-version>1.8</leveldbjni-version>
|
||||
<log4j-version>1.2.17</log4j-version>
|
||||
<mockito-version>1.10.17</mockito-version>
|
||||
<mqtt-client-version>1.10</mqtt-client-version>
|
||||
<mqtt-client-version>1.12</mqtt-client-version>
|
||||
<openjpa-version>1.2.0</openjpa-version>
|
||||
<org-apache-derby-version>10.11.1.1</org-apache-derby-version>
|
||||
<org.osgi.core-version>4.3.1</org.osgi.core-version>
|
||||
|
|
Loading…
Reference in New Issue