mosquitto
mosquitto copied to clipboard
[3049] Do not expire session if item is a bridge
When persistence true and upgrading mosquitto library from version<= 2.0.15 to version>= 2.0.16, all the clients and the bridge are expired by timeout.
Avoid expiring the bridge by checking the item context.
Bug: https://github.com/eclipse-mosquitto/mosquitto/issues/3049
Then please check the following list of things we ask for in your pull request:
- [x] Have you signed the Eclipse Contributor Agreement, using the same email address as you used in your commits?
- [x] Do each of your commits have a "Signed-off-by" line, with the correct email address? Use "git commit -s" to generate this line for you.
- [x] If you are contributing a new feature, is your work based off the develop branch?
- [x] If you are contributing a bugfix, is your work based off the fixes branch?
- [x] Have you added an explanation of what your changes do and why you'd like us to include them?
- [x] Have you successfully run make test with your changes locally?