mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
https://issues.apache.org/jira/browse/AMQ-5997 - support legacy clients
(cherry picked from commit b83c38b04c3e4330e6d5f57e4c5d7f3fd62942f0)
This commit is contained in:
parent
69e894cda8
commit
95443543e7
@ -376,6 +376,9 @@ public class MQTTProtocolConverter {
|
|||||||
|
|
||||||
public void onUnSubscribe(UNSUBSCRIBE command) throws MQTTProtocolException {
|
public void onUnSubscribe(UNSUBSCRIBE command) throws MQTTProtocolException {
|
||||||
checkConnected();
|
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();
|
UTF8Buffer[] topics = command.topics();
|
||||||
if (topics != null) {
|
if (topics != null) {
|
||||||
for (UTF8Buffer topic : topics) {
|
for (UTF8Buffer topic : topics) {
|
||||||
|
2
pom.xml
2
pom.xml
@ -96,7 +96,7 @@
|
|||||||
<leveldbjni-version>1.8</leveldbjni-version>
|
<leveldbjni-version>1.8</leveldbjni-version>
|
||||||
<log4j-version>1.2.17</log4j-version>
|
<log4j-version>1.2.17</log4j-version>
|
||||||
<mockito-version>1.10.17</mockito-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>
|
<openjpa-version>1.2.0</openjpa-version>
|
||||||
<org-apache-derby-version>10.11.1.1</org-apache-derby-version>
|
<org-apache-derby-version>10.11.1.1</org-apache-derby-version>
|
||||||
<org.osgi.core-version>4.3.1</org.osgi.core-version>
|
<org.osgi.core-version>4.3.1</org.osgi.core-version>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user