Skip to content

Add lock when subscribing to topics

Marcos Huck requested to merge fix/websocket_topics_lock into fix/race_conditions

Related tasks

Context

Processing messages while a new subscription is taking place causes a race condition.

Change

This MR adds a RW mutex to avoid subscribing to a topic while a reading is being performed.

Other information

Additional documentation

Merge request reports