FreeRTOS / iot-reference-stm32u5

MIT License
43 stars 29 forks source link

Handled persistent session mutex relinquish correctly #91

Closed AniruddhaKanhere closed 7 months ago

AniruddhaKanhere commented 7 months ago

Description

This PR makes changes required to release a mutex for subscription manager context held by the MQTT agent task when there is a persistent session. Without this change, there is a potential for deadlock as explained in this Issue https://github.com/FreeRTOS/iot-reference-stm32u5/issues/81 by @grdSTM and @gmarcolinosr.

Test Steps

Checklist:

Related Issue

https://github.com/FreeRTOS/iot-reference-stm32u5/issues/81.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.