-
Notifications
You must be signed in to change notification settings - Fork 58
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
amqtt server not relaying traffic #60
Comments
I can confirm the findings of @sjlongland . |
@sjlongland thanks for reporting this issue! The issue is the I will see if I can help there this week and take on this one afterwards. |
So, if I understand the bug correctly, if I configure an access control list (which ultimately will be my aim), it will work… it just doesn't work without an ACL due to a logic error? |
So, others that might want to put the server through its paces… this gets things actually working:
|
I am still a bit hesitant to change defaults to far away from To fix this issue we should do two things:
|
Platform: Debian GNU/Linux 10 (Buster) on AMD64, also reproduced on Gentoo/AMD64
amqtt
installed either from pypi or viagit
usingpip
.A simple test without a configuration file… if I open up three terminal windows:
amqtt
(no arguments)… the server starts successfully, binds to port 1883, listens for traffic. So far so good.amqtt_sub --url mqtt://localhost -t \#
(note the backslash: needed on most shells to escape the#
), it starts, connects and waits for traffic.amqtt
on terminal (1) reports a client has connected.amqtt_pub --url mqtt://localhost -t /testing -m 'test message'
… it exits without error.After running that test, no traffic is observed on terminal (2). If I kill
amqtt
andamqtt_sub
, start up another MQTT server such as Mosquitto in place ofamqtt
, then repeat steps 2 & 3, I see the traffic relayed.I have also tried setting up a configuration file with a password list and using authenticated users, it still fails to pass through traffic.
The idea of an embeddable and extensible MQTT server is fantastic, so I'm really hoping I can get this working but I'm starting simple first before I try hacking things.
The text was updated successfully, but these errors were encountered: