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

Please don't send each MQTT message in its own TCP connection #550

Open
nwf opened this issue Jun 22, 2024 · 0 comments
Open

Please don't send each MQTT message in its own TCP connection #550

nwf opened this issue Jun 22, 2024 · 0 comments

Comments

@nwf
Copy link

nwf commented Jun 22, 2024

Rather than using paho.mqtt.publish's single method, please build a long-lived client object and use it to publish messages in turn. Establishing a new connection each time taxes the broker unnecessarily and especially so in combination with TLS (as in #377). If this would be welcome, I can try to carve out some time to raise the PR myself.

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

1 participant