adding mqtt user feature that works around the paho mqtt 340 connections limit issue#3268
Conversation
Maybe make it a flag in MqttUser instead (passed on to MqttClient triggering a replace of the _loop method in its constructor)? If this is a good fix, maybe it should even be the default? Perhaps we should log a warning if someone tries to launch >340 connections with the default setup? |
|
Good ideas. I'll see what I can do. Thanks! |
4ebb94b to
879b84c
Compare
|
I've made the update. I'm not sure where to add the validation for the 340 warning message. |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 20 days. |
|
commenting this so that it does not get closed. |
|
Hey, sorry for the slow response, I must have misunderstood and thought you were going to do something more. I guess we can merge this as-is. But isnt it better to always ues the custom loop implementation? |
|
@ionutab ? |
|
Hi, |
Hello,
There's a limitation caused by the use of
selectin the paho.mqtt.python library.eclipse-paho/paho.mqtt.python#697
The purpose of this PR is to provide an implementation of
MqttClientthat has an overriden_loopmethod that usesselectorsinstead ofselect.The implementation was initially posted on the solution above, by @j04n-f
Please advise on:
🤔 I'm not sure about the
Experimentalname.📌 Code placement in a separate file.
🧀 If any specific tests are desired and or necessary.
🩻 What better example I could provide.
After the implementation is confirmed I will add documentation and README file updates.
Thanks!