New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGHUP disconnects bridge connection #1942
Milestone
Comments
ralight
added a commit
that referenced
this issue
Dec 17, 2020
Closes #1942. Thanks to charlemagnelasse.
Thanks for the report, I agree with your general suggestion and it should now be fixed and will be part of 2.0.3 shortly. |
fAuernigg
pushed a commit
to fAuernigg/mosquitto
that referenced
this issue
Jan 4, 2021
Closes eclipse#1942. Thanks to charlemagnelasse.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It was noticed that bridge connections will always be dropped when running "killall -SIGHUP mosquitto". Studying my config, it seems like this only happens when I am NOT setting allow_anonymous to true. (default it is false)
Problem is following block
mosquitto/src/security_default.c
Line 1127 in cc47eab
Of course, a bridge doesn't have a username and as I said, allow_anonymous is false. So mosquitto_security_apply_default will just kick my bridge all the time
If I am just setting a remote_username (to some random value) then following section of code will kick my bridge connection
mosquitto/src/security_default.c
Line 1239 in cc47eab
I think both miss a
!context->is_bridge &&
at the beginningThe text was updated successfully, but these errors were encountered: