mosquitto bridge fails to connect to RabbitMQ-MQTT

Bug #1369107 reported by Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mosquitto
New
Undecided
Unassigned

Bug Description

When mosquitto (1.3.4_1) is configured as bridge to a rabbitmq server (3.3.5) connection fails with
the following rabbit log file entry:
=ERROR REPORT==== 13-Sep-2014::11:44:09 ===
MQTT detected framing error '"127.0.0.1:55255 -> 127.0.0.1:1883"' for connection protocol_header_corrupt

Wireshark shows in the CONNECT message a MQTT protocol name "MQIsdp" and version "131".

I looked at the source code of the broker and found in _mosquitt_send_connect() lines 84 ff

if(mosq->bridge && mosq->bridge->try_private && mosq->bridge->try_private_accepted){
version |= 0x80;
}else{

which gives decimal 131 if version =3, as seen in wireshark. I am not sure if this is part of the MQTT specs or not

Revision history for this message
Roger Light (roger.light) wrote :

It's not part of the spec, but is supported in some other brokers. It helps with bridging.

You can disable this feature by using

try_private false

Revision history for this message
Thomas (s-info-o) wrote : Re: [Bug 1369107] Re: mosquitto bridge fails to connect to RabbitMQ-MQTT

That helps.

Many thanks

Am 13.09.2014 um 22:41 schrieb Roger Light <email address hidden>:

> It's not part of the spec, but is supported in some other brokers. It
> helps with bridging.
>
> You can disable this feature by using
>
> try_private false
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1369107
>
> Title:
> mosquitto bridge fails to connect to RabbitMQ-MQTT
>
> Status in mosquitto: an mqtt message broker:
> New
>
> Bug description:
> When mosquitto (1.3.4_1) is configured as bridge to a rabbitmq server (3.3.5) connection fails with
> the following rabbit log file entry:
> =ERROR REPORT==== 13-Sep-2014::11:44:09 ===
> MQTT detected framing error '"127.0.0.1:55255 -> 127.0.0.1:1883"' for connection protocol_header_corrupt
>
> Wireshark shows in the CONNECT message a MQTT protocol name "MQIsdp"
> and version "131".
>
> I looked at the source code of the broker and found in
> _mosquitt_send_connect() lines 84 ff
>
> if(mosq->bridge && mosq->bridge->try_private && mosq->bridge->try_private_accepted){
> version |= 0x80;
> }else{
>
>
> which gives decimal 131 if version =3, as seen in wireshark. I am not sure if this is part of the MQTT specs or not
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mosquitto/+bug/1369107/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.