moquette-io / moquette

Java MQTT lightweight broker
http://moquette-io.github.io/moquette/
Apache License 2.0
2.3k stars 818 forks source link

Adds debug-enabled check for sessions loop assignments #714

Closed andsel closed 1 year ago

andsel commented 1 year ago

Adds a check to verify that current session loop thread is the expected one. This is useful to investigate eventual problems with session loops.

This feature could be explicitly enable setting the moquette.session_loop.debug environment variable with the -D JVM flag.