Crash by using mqtt and websocket connection with same ID

Bug #1378400 reported by Eduard Neufeld
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mosquitto
Fix Committed
Undecided
Unassigned

Bug Description

mosquitto 1.4 broker crash by connecting on it with one mqtt client eg. mosquitto_sub and one websocket client eg. hivemq online client, both clients must have same id. Mosquitto wil try to reuse old connection (read_handle_server.c) but can't do it clearly becouse of diferent connections websocket and mqtt.

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

Thanks for reporting this.

The reusing of connections should work, the problem is that the old client is being freed twice. It's a tricky area, I'm going to look at changing the way it works to simplify it.

Changed in mosquitto:
milestone: none → 1.4
status: New → Confirmed
Revision history for this message
Eduard Neufeld (edu-neufeld) wrote :

yes, i fixed it as folow.
i dont clean context if old connection was an wsi.

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

I think this is now fixed in the latest 1.4 branch. If you could confirm it works for you I'd appreciate it.

Thanks,

Roger

Changed in mosquitto:
status: Confirmed → Fix Committed
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.