Skip to content
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

startbroker --port option not obeyed #69

Open
harmv opened this issue Jan 21, 2021 · 1 comment
Open

startbroker --port option not obeyed #69

harmv opened this issue Jan 21, 2021 · 1 comment

Comments

@harmv
Copy link

harmv commented Jan 21, 2021

startbroker.py has an option --port, but thats ignored

h3. steps to reproduce

paho.mqtt.testing/interoperability/startbroker.py --port=1889

or

paho.mqtt.testing/interoperability/startbroker.py --port 1889

h3. expected result

a broker is started that listens on port 1889

h3. actual result

The startbroker.py always binds on 1883, no matter what --port option is given

INFO 20210121 173113 Starting TCP listener on address '' port 1883

h3. version

2873885 (Fri Oct 2 19:16:08 2020 +0100)

@wolkenarchitekt
Copy link

Indeed paho.mqtt.testing ignores all configs, settings and parameters to set port or host.
This change I made demonstrates a minimal modification to the code that will properly set the host/port in a very hacky way:
wolkenarchitekt@90e5368
Fixing this properly will take a longer time, due to the code "structure" of paho.mqtt.testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants